diff options
Diffstat (limited to 'media/audio/mac/audio_input_mac.cc')
-rw-r--r-- | media/audio/mac/audio_input_mac.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/media/audio/mac/audio_input_mac.cc b/media/audio/mac/audio_input_mac.cc index 61ab281..0277a00 100644 --- a/media/audio/mac/audio_input_mac.cc +++ b/media/audio/mac/audio_input_mac.cc @@ -127,6 +127,15 @@ double PCMQueueInAudioInputStream::GetVolume() { return 0.0; } +void PCMQueueInAudioInputStream::SetAutomaticGainControl(bool enabled) { + NOTREACHED() << "Only supported for low-latency mode."; +} + +bool PCMQueueInAudioInputStream::GetAutomaticGainControl() { + NOTREACHED() << "Only supported for low-latency mode."; + return false; +} + void PCMQueueInAudioInputStream::HandleError(OSStatus err) { if (callback_) callback_->OnError(this, static_cast<int>(err)); @@ -189,7 +198,8 @@ void PCMQueueInAudioInputStream::HandleInputBuffer( callback_->OnData(this, reinterpret_cast<const uint8*>(audio_buffer->mAudioData), audio_buffer->mAudioDataByteSize, - audio_buffer->mAudioDataByteSize); + audio_buffer->mAudioDataByteSize, + 0.0); // Recycle the buffer. OSStatus err = QueueNextBuffer(audio_buffer); if (err != noErr) { |