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

Unified Diff: trunk/src/content/renderer/media/webrtc_local_audio_track.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_local_audio_track.cc
===================================================================
--- trunk/src/content/renderer/media/webrtc_local_audio_track.cc (revision 217773)
+++ trunk/src/content/renderer/media/webrtc_local_audio_track.cc (working copy)
@@ -47,8 +47,7 @@
int number_of_channels,
int number_of_frames,
int audio_delay_milliseconds,
- int volume,
- bool key_pressed) {
+ int volume) {
scoped_refptr<WebRtcAudioCapturer> capturer;
std::vector<int> voe_channels;
int sample_rate = 0;
@@ -69,15 +68,10 @@
// Feed the data to the sinks.
for (SinkList::const_iterator it = sinks.begin(); it != sinks.end(); ++it) {
- int new_volume = (*it)->CaptureData(voe_channels,
- audio_data,
- sample_rate,
- number_of_channels,
- number_of_frames,
- audio_delay_milliseconds,
- volume,
- need_audio_processing_,
- key_pressed);
+ int new_volume = (*it)->CaptureData(voe_channels, audio_data, sample_rate,
+ number_of_channels, number_of_frames,
+ audio_delay_milliseconds, volume,
+ need_audio_processing_);
if (new_volume != 0 && capturer.get())
capturer->SetVolume(new_volume);
}

Powered by Google App Engine
This is Rietveld 408576698