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

Unified Diff: media/base/output_device.h

Issue 1323403005: Allow AudioOutputDevice objects to be initialized with a specific hardware output device and store … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dalecurtis' comments Created 5 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
Index: media/base/output_device.h
diff --git a/media/base/output_device.h b/media/base/output_device.h
index c5ac7917746feeeb2833344274f33ba028b7950c..719e8e371cb4af862de92d77e6187e89571f1592 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. Must never be called on the IO thread.
+ virtual AudioParameters GetOutputParameters() = 0;
+
protected:
virtual ~OutputDevice() {}
};

Powered by Google App Engine
This is Rietveld 408576698