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

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

Issue 185413009: Implements the GetSignalLevel and GetStats interface for the local audio track. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 10 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 70ae7bbccb3dc15f82d6a277971ef0205581ed4f..c64709a420caed173095ffd3877d09860c49b591 100644
--- a/content/renderer/media/webrtc_local_audio_track.h
+++ b/content/renderer/media/webrtc_local_audio_track.h
@@ -18,6 +18,7 @@
namespace content {
+class MediaStreamAudioProcessor;
class MediaStreamAudioSink;
class MediaStreamAudioSinkOwner;
class MediaStreamAudioTrackSink;
@@ -64,7 +65,7 @@ class CONTENT_EXPORT WebRtcLocalAudioTrack
void Stop();
// Method called by the capturer to deliver the capture data.
- // Call on the capture audio thread.
+ // Called on the capture audio thread.
void Capture(const int16* audio_data,
base::TimeDelta delay,
int volume,
@@ -73,9 +74,15 @@ class CONTENT_EXPORT WebRtcLocalAudioTrack
// Method called by the capturer to set the audio parameters used by source
// of the capture data..
- // Call on the capture audio thread.
+ // Called on the capture audio thread.
void OnSetFormat(const media::AudioParameters& params);
+ // Method called by the capturer to set the processor that applies signal
+ // processing on the data of the track.
+ // Called on the capture audio thread.
+ void SetAudioProcessor(
+ const scoped_refptr<MediaStreamAudioProcessor>& processor);
+
blink::WebAudioSourceProvider* audio_source_provider() const {
return source_provider_.get();
}

Powered by Google App Engine
This is Rietveld 408576698