Chromium Code Reviews| Index: media/audio/mac/audio_auhal_mac.cc |
| diff --git a/media/audio/mac/audio_auhal_mac.cc b/media/audio/mac/audio_auhal_mac.cc |
| index e11885fa3d0a5e599a0462a698bc9c3063cb89b2..83c9b22e19ea5ff8bc4fd3580cd2c779b1b4fccf 100644 |
| --- a/media/audio/mac/audio_auhal_mac.cc |
| +++ b/media/audio/mac/audio_auhal_mac.cc |
| @@ -114,30 +114,6 @@ bool AUHALStream::Open() { |
| DCHECK(!audio_unit_); |
| DVLOG(1) << "Open"; |
| - // Get the total number of output channels that the |
|
DaleCurtis
2017/03/23 22:15:03
Deleted this since it's enforced by the AudioOutpu
|
| - // hardware supports. |
| - int device_output_channels; |
| - bool got_output_channels = AudioManagerMac::GetDeviceChannels( |
| - device_, |
| - kAudioDevicePropertyScopeOutput, |
| - &device_output_channels); |
| - |
| - // Sanity check the requested output channels. |
| - if (!got_output_channels || |
| - output_channels_ <= 0 || output_channels_ > device_output_channels) { |
| - LOG(ERROR) << "AudioDevice does not support requested output channels."; |
| - return false; |
| - } |
| - |
| - // The requested sample-rate must match the hardware sample-rate. |
| - int sample_rate = AudioManagerMac::HardwareSampleRateForDevice(device_); |
| - |
| - if (sample_rate != params_.sample_rate()) { |
| - LOG(ERROR) << "Requested sample-rate: " << params_.sample_rate() |
| - << " must match the hardware sample-rate: " << sample_rate; |
| - return false; |
| - } |
| - |
| // The output bus will wrap the AudioBufferList given to us in |
| // the Render() callback. |
| DCHECK_GT(output_channels_, 0); |