| Index: media/base/channel_mixer.h
|
| ===================================================================
|
| --- media/base/channel_mixer.h (revision 187648)
|
| +++ 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,13 @@
|
| // input channels as defined in the matrix.
|
| class MEDIA_EXPORT ChannelMixer {
|
| public:
|
| - ChannelMixer(ChannelLayout input, ChannelLayout output);
|
| + ChannelMixer(ChannelLayout input_layout, ChannelLayout output_layout);
|
| + ChannelMixer(const AudioParameters& input, const AudioParameters& output);
|
| ~ChannelMixer();
|
|
|
| + void Initialize(ChannelLayout input_layout, int input_channels,
|
| + ChannelLayout output_layout, int output_channels);
|
| +
|
| // Transforms all channels from |input| into |output| channels.
|
| void Transform(const AudioBus* input, AudioBus* output);
|
|
|
|
|