Chromium Code Reviews| 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..9516bab0e2df15803bf429814689ad0b5a45bfbc 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. |
| + int pin_device_; |
|
tommi (sloooow) - chröme
2017/01/25 22:05:28
could this variable be made const?
Qiang(Joe) Xu
2017/01/25 22:50:18
Done.
|
| + |
| DISALLOW_COPY_AND_ASSIGN(CrasUnifiedStream); |
| }; |