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

Unified Diff: media/audio/audio_manager.h

Issue 23523023: Add GetOutputStreamParameters, GetAssociatedOutputDeviceID to AudioManager. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 3 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 | « no previous file | media/audio/audio_manager_base.h » ('j') | media/audio/win/audio_low_latency_output_win.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_manager.h
diff --git a/media/audio/audio_manager.h b/media/audio/audio_manager.h
index 2813d546aeb109465a05a63f30a0c0644c603398..fda6c54d1d24343c53d6247209a9909df473c637 100644
--- a/media/audio/audio_manager.h
+++ b/media/audio/audio_manager.h
@@ -145,12 +145,25 @@ class MEDIA_EXPORT AudioManager {
// does not need their own implementation to this interface.
virtual AudioParameters GetDefaultOutputStreamParameters() = 0;
+ // Returns the output hardware audio parameters for a specific output device.
henrika (OOO until Aug 14) 2013/09/04 11:11:40 Did you consider using only this method and use a
tommi (sloooow) - chröme 2013/09/04 13:06:55 Yes, that's the goal but I decided not to remove t
+ virtual AudioParameters GetOutputStreamParameters(
+ const std::string& device_id) = 0;
+
// Returns the input hardware audio parameters of the specific device
// for opening input streams. Each AudioManager needs to implement their own
// version of this interface.
virtual AudioParameters GetInputStreamParameters(
const std::string& device_id) = 0;
+ // Returns the device id of an output device that belongs to the same hardware
+ // as the specified input device.
+ // If the hardware has only an input device (e.g. a webcam), the return value
+ // will be empty (which the caller can then interpret to be the default output
+ // device). Implementations that don't yet support this feature, must return
+ // an empty string.
+ virtual std::string GetAssociatedOutputDeviceID(
henrika (OOO until Aug 14) 2013/09/04 11:11:40 Like the name Associated.
+ const std::string& input_device_id) = 0;
+
protected:
AudioManager();
« no previous file with comments | « no previous file | media/audio/audio_manager_base.h » ('j') | media/audio/win/audio_low_latency_output_win.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698