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

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: Addressing miu@ and grunell@ review comments, changing AudioDeviceFactory to produce AudioCapturerS… 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
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.
DaleCurtis 2016/03/29 19:57:43 Hmm, this meaning is a bit unclear. It seems to im
o1ka 2016/03/30 14:02:42 Not quite in one place, it's actuallly freshly bor
+ static AudioParameters UnavailableDeviceParams();
+
private:
Format format_; // Format of the stream.
ChannelLayout channel_layout_; // Order of surround sound channels.

Powered by Google App Engine
This is Rietveld 408576698