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

Unified Diff: trunk/src/content/renderer/media/webrtc_audio_device_impl.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
Index: trunk/src/content/renderer/media/webrtc_audio_device_impl.cc
===================================================================
--- trunk/src/content/renderer/media/webrtc_audio_device_impl.cc (revision 217773)
+++ trunk/src/content/renderer/media/webrtc_audio_device_impl.cc (working copy)
@@ -59,8 +59,7 @@
int number_of_frames,
int audio_delay_milliseconds,
int current_volume,
- bool need_audio_processing,
- bool key_pressed) {
+ bool need_audio_processing) {
int total_delay_ms = 0;
{
base::AutoLock auto_lock(lock_);
@@ -76,9 +75,11 @@
// Write audio samples in blocks of 10 milliseconds to the registered
// webrtc::AudioTransport sink. Keep writing until our internal byte
// buffer is empty.
+ // TODO(niklase): Wire up the key press detection.
const int16* audio_buffer = audio_data;
const int samples_per_10_msec = (sample_rate / 100);
int accumulated_audio_samples = 0;
+ bool key_pressed = false;
uint32_t new_volume = 0;
while (accumulated_audio_samples < number_of_frames) {
// Deliver 10ms of recorded 16-bit linear PCM audio.

Powered by Google App Engine
This is Rietveld 408576698