Chromium Code Reviews| Index: media/base/output_device.h |
| diff --git a/media/base/output_device.h b/media/base/output_device.h |
| index c5ac7917746feeeb2833344274f33ba028b7950c..3ae9a311d5b654968be038263af345c0f0e8dfee 100644 |
| --- a/media/base/output_device.h |
| +++ b/media/base/output_device.h |
| @@ -19,10 +19,8 @@ enum SwitchOutputDeviceResult { |
| SWITCH_OUTPUT_DEVICE_RESULT_SUCCESS = 0, |
| SWITCH_OUTPUT_DEVICE_RESULT_ERROR_NOT_FOUND, |
| SWITCH_OUTPUT_DEVICE_RESULT_ERROR_NOT_AUTHORIZED, |
| - SWITCH_OUTPUT_DEVICE_RESULT_ERROR_OBSOLETE, |
| - SWITCH_OUTPUT_DEVICE_RESULT_ERROR_NOT_SUPPORTED, |
| - SWITCH_OUTPUT_DEVICE_RESULT_LAST = |
| - SWITCH_OUTPUT_DEVICE_RESULT_ERROR_NOT_SUPPORTED, |
| + SWITCH_OUTPUT_DEVICE_RESULT_ERROR_INTERNAL, |
| + SWITCH_OUTPUT_DEVICE_RESULT_LAST = SWITCH_OUTPUT_DEVICE_RESULT_ERROR_INTERNAL, |
| }; |
| typedef base::Callback<void(SwitchOutputDeviceResult)> SwitchOutputDeviceCB; |
| @@ -47,6 +45,11 @@ class OutputDevice { |
| const GURL& security_origin, |
| const SwitchOutputDeviceCB& callback) = 0; |
| + // Returns the device's audio output parameters. |
| + // If the parameters are not available, this method blocks until they |
| + // become available. |
|
DaleCurtis
2015/09/12 01:17:19
Add a clause saying it must never be called on the
Guido Urdaneta
2015/09/14 11:35:48
Done.
|
| + virtual AudioParameters GetOutputParameters() = 0; |
| + |
| protected: |
| virtual ~OutputDevice() {} |
| }; |