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

Unified Diff: media/audio/cras/cras_unified.h

Issue 2651073004: ChromeOS: enable pinning stream output routing for webapp request [extracted from 2516813002] (Closed)
Patch Set: comments from ps1 Created 3 years, 11 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/cras/cras_input.cc ('k') | media/audio/cras/cras_unified.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/cras/cras_unified.h
diff --git a/media/audio/cras/cras_unified.h b/media/audio/cras/cras_unified.h
index b871aa6e1fda946d79babd41823aae99320505c3..2d5eeee7030d29529218ab944f6314f7cf01d16c 100644
--- a/media/audio/cras/cras_unified.h
+++ b/media/audio/cras/cras_unified.h
@@ -35,7 +35,9 @@ class MEDIA_EXPORT CrasUnifiedStream : public AudioOutputStream {
public:
// The ctor takes all the usual parameters, plus |manager| which is the
// audio manager who is creating this object.
- CrasUnifiedStream(const AudioParameters& params, AudioManagerCras* manager);
+ CrasUnifiedStream(const AudioParameters& params,
+ AudioManagerCras* manager,
+ const std::string& device_id);
// The dtor is typically called by the AudioManager only and it is usually
// triggered by calling AudioUnifiedStream::Close().
@@ -111,6 +113,9 @@ class MEDIA_EXPORT CrasUnifiedStream : public AudioOutputStream {
// Direciton of the stream.
CRAS_STREAM_DIRECTION stream_direction_;
+ // Index of the CRAS device to stream output to.
+ const int pin_device_;
+
DISALLOW_COPY_AND_ASSIGN(CrasUnifiedStream);
};
« no previous file with comments | « media/audio/cras/cras_input.cc ('k') | media/audio/cras/cras_unified.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698