Chromium Code Reviews| Index: content/renderer/media/audio_message_filter.cc |
| =================================================================== |
| --- content/renderer/media/audio_message_filter.cc (revision 186233) |
| +++ content/renderer/media/audio_message_filter.cc (working copy) |
| @@ -172,7 +172,14 @@ |
| if (!audio_hardware_config_) |
| return; |
| - audio_hardware_config_->UpdateOutputConfig(new_buffer_size, new_sample_rate); |
| + // TODO(crogers): fix OnOutputDeviceChanged() to pass AudioParameters. |
|
DaleCurtis
2013/03/07 02:41:39
I assumed you'd change this now as otherwise this
Chris Rogers
2013/03/09 01:37:50
Good catch. I've fixed the code to take channels
|
| + media::AudioParameters output_params( |
| + media::AudioParameters::AUDIO_PCM_LOW_LATENCY, |
|
DaleCurtis
2013/03/07 02:41:39
4 space indent.
Chris Rogers
2013/03/09 01:37:50
Done.
|
| + audio_hardware_config_->GetOutputChannelLayout(), |
| + new_sample_rate, |
| + 16, |
| + new_buffer_size); |
| + audio_hardware_config_->UpdateOutputConfig(output_params); |
| } |
| void AudioMessageFilter::SetAudioHardwareConfig( |