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