Chromium Code Reviews| Index: media/base/channel_mixer.h |
| =================================================================== |
| --- media/base/channel_mixer.h (revision 186233) |
| +++ media/base/channel_mixer.h (working copy) |
| @@ -14,6 +14,7 @@ |
| namespace media { |
| class AudioBus; |
| +class AudioParameters; |
| // ChannelMixer is for converting audio between channel layouts. The conversion |
| // matrix is built upon construction and used during each Transform() call. The |
| @@ -23,9 +24,12 @@ |
| // input channels as defined in the matrix. |
| class MEDIA_EXPORT ChannelMixer { |
| public: |
| - ChannelMixer(ChannelLayout input, ChannelLayout output); |
| + ChannelMixer(ChannelLayout input_layout, ChannelLayout output_layout); |
|
DaleCurtis
2013/03/07 02:41:39
Can this constructor just be removed?
|
| + ChannelMixer(const AudioParameters& input, const AudioParameters& output); |
| ~ChannelMixer(); |
| + void Initialize(const AudioParameters& input, const AudioParameters& output); |
| + |
| // Transforms all channels from |input| into |output| channels. |
| void Transform(const AudioBus* input, AudioBus* output); |