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

Unified Diff: media/audio/audio_system.h

Issue 2692203003: Switching AudioOutputAuthorizationHandler from using AudioManager interface to AudioSystem one. (Closed)
Patch Set: Created 3 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_system.h
diff --git a/media/audio/audio_system.h b/media/audio/audio_system.h
index a11b030c742ab22e6b195f2a40388decd7df488c..ef04c4ff7ae6b1d24913f4c1b04a44484fab07ca 100644
--- a/media/audio/audio_system.h
+++ b/media/audio/audio_system.h
@@ -30,6 +30,14 @@ class MEDIA_EXPORT AudioSystem {
const std::string& device_id,
OnAudioParamsCallback on_params_cb) const = 0;
+ // If media::AudioDeviceDescription::IsDefaultDevice(device_id) is true,
+ // callback will receive the parameters of the default output device.
+ // Callback will receive invalid parameters if the device (default or not) is
o1ka 2017/02/14 11:37:03 guidou@: AudioOutputAuthorizationHandler will fall
+ // not found.
+ virtual void GetOutputStreamParameters(
+ const std::string& device_id,
+ OnAudioParamsCallback on_params_cb) const = 0;
+
virtual void HasInputDevices(OnBoolCallback on_has_devices_cb) const = 0;
// Must not be used for anything but stream creation.

Powered by Google App Engine
This is Rietveld 408576698