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

Unified Diff: media/audio/audio_manager.h

Issue 12316131: Moved AudioUtil static functions to AudioManager interfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged GetPreferredLowLatencyOutputStreamParameters to GetDefaultOutputStreamParameters Created 7 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: media/audio/audio_manager.h
diff --git a/media/audio/audio_manager.h b/media/audio/audio_manager.h
index f169b41f752cdf191c0406a997460160f3387891..19e9dc2b4baaca6bbcfed69020255e23f05e7a2c 100644
--- a/media/audio/audio_manager.h
+++ b/media/audio/audio_manager.h
@@ -120,6 +120,19 @@ class MEDIA_EXPORT AudioManager {
virtual void RemoveOutputDeviceChangeListener(
AudioDeviceListener* listener) = 0;
+ // Returns the default output hardware audio parameters for opening output
+ // streams. If the users inject a valid |input_params|, each AudioManager
+ // will decide if they should return the values from |input_params| or the
+ // default hardware values. If the |input_params| is invalid, it will simply
+ // return the default hardware audio parameters.
+ virtual AudioParameters GetDefaultOutputStreamParameters(
Chris Rogers 2013/03/04 01:04:11 It would be good to have another version of this m
no longer working on chromium 2013/03/04 14:55:04 I agree that is a bit clunky to force the clients
+ const AudioParameters& input_params) = 0;
+
+ // Returns the input hardware audio parameters of the specific device
+ // for opening input streams.
+ virtual AudioParameters GetInputStreamParameters(
+ const std::string& device_id) = 0;
+
protected:
AudioManager();

Powered by Google App Engine
This is Rietveld 408576698