Chromium Code Reviews| 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(); |