| Index: components/audio_modem/audio_recorder_impl.cc
|
| diff --git a/components/audio_modem/audio_recorder_impl.cc b/components/audio_modem/audio_recorder_impl.cc
|
| index b694c3974cc3ce749339328e34e93716c8d33a1a..634380f9837477260f5d8f315dafdc7884c5281e 100644
|
| --- a/components/audio_modem/audio_recorder_impl.cc
|
| +++ b/components/audio_modem/audio_recorder_impl.cc
|
| @@ -175,7 +175,7 @@ void AudioRecorderImpl::OnData(media::AudioInputStream* stream,
|
| // Buffer full, send it for processing.
|
| if (buffer_->frames() == buffer_frame_index_) {
|
| ProcessSamples(buffer_.Pass(), decode_callback_);
|
| - buffer_ = media::AudioBus::Create(kDefaultChannels, total_buffer_frames_);
|
| + buffer_ = media::AudioBus::Create(source->channels(), total_buffer_frames_);
|
| buffer_frame_index_ = 0;
|
|
|
| // Copy any remaining frames in the source to our buffer.
|
|
|