Chromium Code Reviews| Index: media/base/audio_bus.h |
| =================================================================== |
| --- media/base/audio_bus.h (revision 156102) |
| +++ media/base/audio_bus.h (working copy) |
| @@ -45,6 +45,10 @@ |
| // Returns the required memory size to use the WrapMemory() method. |
| static int CalculateMemorySize(const AudioParameters& params); |
| + // Calculates the required size for an AudioBus given the number of channels |
|
henrika (OOO until Aug 14)
2012/09/11 21:44:48
Why is this comment different from the comment abo
|
| + // and frames. |
| + static int CalculateMemorySize(int channels, int frames); |
| + |
| // 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 |