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

Unified Diff: content/renderer/media/webrtc_local_audio_track.h

Issue 37793005: move the APM to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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: content/renderer/media/webrtc_local_audio_track.h
diff --git a/content/renderer/media/webrtc_local_audio_track.h b/content/renderer/media/webrtc_local_audio_track.h
index 01b11208021d3e32198eb3061f1895957fb7f29d..38027d93bf6c9a86a5197833b49be87cfd5eabaf 100644
--- a/content/renderer/media/webrtc_local_audio_track.h
+++ b/content/renderer/media/webrtc_local_audio_track.h
@@ -65,10 +65,10 @@ class CONTENT_EXPORT WebRtcLocalAudioTrack
void Stop();
// Method called by the capturer to deliver the capture data.
- void Capture(media::AudioBus* audio_source,
- int audio_delay_milliseconds,
- int volume,
- bool key_pressed);
+ void Capture(const int16* audio_data,
+ int sample_rate,
+ int number_of_channels,
+ int number_of_frames);
// Method called by the capturer to set the audio parameters used by source
// of the capture data..
@@ -125,10 +125,7 @@ class CONTENT_EXPORT WebRtcLocalAudioTrack
bool need_audio_processing_;
- // Buffers used for temporary storage during capture callbacks.
- // Allocated during initialization.
- class ConfiguredBuffer;
- scoped_refptr<ConfiguredBuffer> buffer_;
+ media::AudioParameters params_;
DISALLOW_COPY_AND_ASSIGN(WebRtcLocalAudioTrack);
};

Powered by Google App Engine
This is Rietveld 408576698