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

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

Issue 1769933002: Looking up device id by session id for AudioRendererMixerInput (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment and bug ref to remove AudioManagerBase dependency Created 4 years, 8 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/common/media/audio_messages.h ('k') | content/renderer/media/audio_device_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_device_factory.h
diff --git a/content/renderer/media/audio_device_factory.h b/content/renderer/media/audio_device_factory.h
index 73ce7ee88fcfdb0d8c7c57bd9bbbb6d5eaebb72f..a8b8cb8b3356575e9e6e559ace510baa2429d3f6 100644
--- a/content/renderer/media/audio_device_factory.h
+++ b/content/renderer/media/audio_device_factory.h
@@ -99,7 +99,10 @@ class CONTENT_EXPORT AudioDeviceFactory {
// functions to provide alternate audio device implementations.
// If the return value of either of these function is NULL, we fall back
// on the default implementation.
- virtual scoped_refptr<media::AudioRendererSink> CreateAudioRendererMixerSink(
+
+ // Creates a final sink in the rendering pipeline, which represents the actual
+ // output device.
+ virtual scoped_refptr<media::AudioRendererSink> CreateFinalAudioRendererSink(
int render_frame_id,
int sesssion_id,
const std::string& device_id,
@@ -127,6 +130,12 @@ class CONTENT_EXPORT AudioDeviceFactory {
// create the default AudioRendererSinks.
static AudioDeviceFactory* factory_;
+ static scoped_refptr<media::AudioRendererSink> NewFinalAudioRendererSink(
+ int render_frame_id,
+ int session_id,
+ const std::string& device_id,
+ const url::Origin& security_origin);
+
DISALLOW_COPY_AND_ASSIGN(AudioDeviceFactory);
};
« no previous file with comments | « content/common/media/audio_messages.h ('k') | content/renderer/media/audio_device_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698