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

Unified Diff: media/audio/audio_manager_base.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/renderer/pepper/pepper_platform_audio_output.cc ('k') | media/audio/audio_manager_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_manager_base.h
diff --git a/media/audio/audio_manager_base.h b/media/audio/audio_manager_base.h
index 2a926904fd488e36db747da7019689f964f97436..d8504478530f709dae5fc19552dc1fb1d0431328 100644
--- a/media/audio/audio_manager_base.h
+++ b/media/audio/audio_manager_base.h
@@ -49,6 +49,17 @@ class MEDIA_EXPORT AudioManagerBase : public AudioManager {
// stream, otherwise stream initialization may fail.
static const char kLoopbackInputDeviceId[];
+ // Returns true if |device_id| corresponds to the default device.
+ static bool IsDefaultDeviceId(const std::string& device_id);
+
+ // If |device_id| is not empty, |session_id| should be ignored and the output
+ // device should be selected basing on |device_id|.
+ // If |device_id| is empty and |session_id| is nonzero, output device
+ // associated with the opened input device designated by |session_id| should
+ // be used.
+ static bool UseSessionIdToSelectDevice(int session_id,
+ const std::string& device_id);
+
~AudioManagerBase() override;
// AudioManager:
« no previous file with comments | « content/renderer/pepper/pepper_platform_audio_output.cc ('k') | media/audio/audio_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698