Index: media/audio/audio_input_device.cc |
diff --git a/media/audio/audio_input_device.cc b/media/audio/audio_input_device.cc |
index 87fd57143cd1433568c2dab8b3fc83e52112415a..5477be6e63fd98ad450699a1849f11c6b0163ca0 100644 |
--- a/media/audio/audio_input_device.cc |
+++ b/media/audio/audio_input_device.cc |
@@ -294,6 +294,7 @@ void AudioInputDevice::AudioThreadCallback::Process(int pending_data) { |
DCHECK_EQ(buffer->params.size, |
segment_length_ - sizeof(AudioInputBufferParameters)); |
double volume = buffer->params.volume; |
+ bool key_pressed = buffer->params.key_pressed; |
int audio_delay_milliseconds = pending_data / bytes_per_ms_; |
int16* memory = reinterpret_cast<int16*>(&buffer->audio[0]); |
@@ -308,8 +309,8 @@ void AudioInputDevice::AudioThreadCallback::Process(int pending_data) { |
// Deliver captured data to the client in floating point format |
// and update the audio-delay measurement. |
- capture_callback_->Capture(audio_bus_.get(), |
- audio_delay_milliseconds, volume); |
+ capture_callback_->Capture( |
+ audio_bus_.get(), audio_delay_milliseconds, volume, key_pressed); |
} |
} // namespace media |