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

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

Issue 166363002: Use the current default capture for the webaudio track to get the correct delay value (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: new solution, ready for review. 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
« no previous file with comments | « content/renderer/media/media_stream_dependency_factory.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webrtc_audio_device_impl.h
diff --git a/content/renderer/media/webrtc_audio_device_impl.h b/content/renderer/media/webrtc_audio_device_impl.h
index f9279f5f6ff5c4986b1afd62e5223228426ae690..15790d269c993469cf50f025851514270b372608 100644
--- a/content/renderer/media/webrtc_audio_device_impl.h
+++ b/content/renderer/media/webrtc_audio_device_impl.h
@@ -305,6 +305,9 @@ class CONTENT_EXPORT WebRtcAudioDeviceImpl
void AddAudioCapturer(const scoped_refptr<WebRtcAudioCapturer>& capturer);
void RemoveAudioCapturer(const scoped_refptr<WebRtcAudioCapturer>& capturer);
+ // Gets the default capturer, which is the last capturer in |capturers_|.
+ scoped_refptr<WebRtcAudioCapturer> GetDefaultCapturer() const;
+
// Gets paired device information of the capture device for the audio
// renderer. This is used to pass on a session id, sample rate and buffer
// size to a webrtc audio renderer (either local or remote), so that audio
@@ -362,10 +365,6 @@ class CONTENT_EXPORT WebRtcAudioDeviceImpl
virtual void SetRenderFormat(const media::AudioParameters& params) OVERRIDE;
virtual void RemoveAudioRenderer(WebRtcAudioRenderer* renderer) OVERRIDE;
- // Helper to get the default capturer, which is the last capturer in
- // |capturers_|.
- scoped_refptr<WebRtcAudioCapturer> GetDefaultCapturer() const;
-
// Used to DCHECK that we are called on the correct thread.
base::ThreadChecker thread_checker_;
« no previous file with comments | « content/renderer/media/media_stream_dependency_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698