Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Unified Diff: trunk/src/media/audio/audio_input_device.cc

Issue 22871007: Revert 217768 "Adding key press detection in the browser process." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/media/audio/audio_input_controller_unittest.cc ('k') | trunk/src/media/audio/audio_parameters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/media/audio/audio_input_device.cc
===================================================================
--- trunk/src/media/audio/audio_input_device.cc (revision 217773)
+++ trunk/src/media/audio/audio_input_device.cc (working copy)
@@ -294,7 +294,6 @@
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]);
@@ -309,8 +308,8 @@
// 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, key_pressed);
+ capture_callback_->Capture(audio_bus_.get(),
+ audio_delay_milliseconds, volume);
}
} // namespace media
« no previous file with comments | « trunk/src/media/audio/audio_input_controller_unittest.cc ('k') | trunk/src/media/audio/audio_parameters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698