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

Unified Diff: trunk/src/content/renderer/media/webrtc_audio_capturer.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_capturer.cc
===================================================================
--- trunk/src/content/renderer/media/webrtc_audio_capturer.cc (revision 217773)
+++ trunk/src/content/renderer/media/webrtc_audio_capturer.cc (working copy)
@@ -102,16 +102,14 @@
int number_of_channels,
int number_of_frames,
int audio_delay_milliseconds,
- int volume,
- bool key_pressed) {
+ int volume) {
base::AutoLock lock(lock_);
if (delegate_) {
delegate_->CaptureData(audio_data,
number_of_channels,
number_of_frames,
audio_delay_milliseconds,
- volume,
- key_pressed);
+ volume);
}
}
@@ -426,11 +424,10 @@
void WebRtcAudioCapturer::Capture(media::AudioBus* audio_source,
int audio_delay_milliseconds,
- double volume,
- bool key_pressed) {
-// This callback is driven by AudioInputDevice::AudioThreadCallback if
-// |source_| is AudioInputDevice, otherwise it is driven by client's
-// CaptureCallback.
+ double volume) {
+ // This callback is driven by AudioInputDevice::AudioThreadCallback if
+ // |source_| is AudioInputDevice, otherwise it is driven by client's
+ // CaptureCallback.
#if defined(OS_WIN) || defined(OS_MACOSX)
DCHECK_LE(volume, 1.0);
#elif defined(OS_LINUX) || defined(OS_OPENBSD)
@@ -474,11 +471,8 @@
it != tracks.end();
++it) {
(*it)->CaptureData(buffer_ref_while_calling->buffer(),
- audio_source->channels(),
- audio_source->frames(),
- audio_delay_milliseconds,
- volume,
- key_pressed);
+ audio_source->channels(), audio_source->frames(),
+ audio_delay_milliseconds, volume_);
}
}

Powered by Google App Engine
This is Rietveld 408576698