Chromium Code Reviews| Index: media/base/audio_bus.h |
| =================================================================== |
| --- media/base/audio_bus.h (revision 155897) |
| +++ media/base/audio_bus.h (working copy) |
| @@ -45,6 +45,11 @@ |
| // Returns the required memory size to use the WrapMemory() method. |
| static int CalculateMemorySize(const AudioParameters& params); |
| + // Calculates the required size for an AudioBus with the given params, sets |
| + // |aligned_frames| to the actual frame length of each channel array. |
| + static int CalculateMemorySizeFromChannels(int channels, int frames, |
| + int* aligned_frames); |
|
DaleCurtis
2012/09/11 09:44:39
I'd prefer this to be just CalculateMemorySize(int
scherkus (not reviewing)
2012/09/11 12:13:00
Perhaps we need an internal impl w/ |aligned_frame
DaleCurtis
2012/09/11 12:22:23
Yes, that's what I was thinking.
|
| + |
| // Helper methods for converting an AudioBus from and to interleaved integer |
| // data. Expects interleaving to be [ch0, ch1, ..., chN, ch0, ch1, ...] with |
| // |bytes_per_sample| per value. Values are scaled and bias corrected during |