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

Unified Diff: media/audio/audio_parameters.h

Issue 1809093003: Moving SwitchOutputDevice out of OutputDevice interface, eliminating OutputDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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
« no previous file with comments | « media/audio/audio_output_stream_sink.cc ('k') | media/audio/audio_parameters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_parameters.h
diff --git a/media/audio/audio_parameters.h b/media/audio/audio_parameters.h
index 2735d79af927889eef786b9acd907140230fd3ac..d7d730b91497b1a6bd145961c5ce7b6e0ec6f2c1 100644
--- a/media/audio/audio_parameters.h
+++ b/media/audio/audio_parameters.h
@@ -177,6 +177,9 @@ class MEDIA_EXPORT AudioParameters {
AudioParameters(const AudioParameters&);
AudioParameters& operator=(const AudioParameters&);
+ // Creates reasonable dummy parameters in case no device is available.
+ static AudioParameters UnavailableDeviceParams();
+
private:
Format format_; // Format of the stream.
ChannelLayout channel_layout_; // Order of surround sound channels.
« no previous file with comments | « media/audio/audio_output_stream_sink.cc ('k') | media/audio/audio_parameters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698