Chromium Code Reviews| Index: media/audio/cras/audio_manager_cras.h |
| diff --git a/media/audio/cras/audio_manager_cras.h b/media/audio/cras/audio_manager_cras.h |
| index ddf0aace204e998ae5d33a14088a3cdb9ce7d0f8..bafe7829b89f3594325559c346fb87598db417ee 100644 |
| --- a/media/audio/cras/audio_manager_cras.h |
| +++ b/media/audio/cras/audio_manager_cras.h |
| @@ -52,6 +52,9 @@ class MEDIA_EXPORT AudioManagerCras : public AudioManagerBase { |
| static snd_pcm_format_t BitsToFormat(int bits_per_sample); |
| + // Checks if |device_id| corresponds to 'Default' |is_input| choice. |
|
tommi (sloooow) - chröme
2017/01/25 22:05:28
nit:
// Checks if |device_id| corresponds to the
Qiang(Joe) Xu
2017/01/25 22:50:18
Done.
|
| + bool IsDefault(const std::string& device_id, bool is_input); |
| + |
| protected: |
| ~AudioManagerCras() override; |
| @@ -61,7 +64,8 @@ class MEDIA_EXPORT AudioManagerCras : public AudioManagerBase { |
| private: |
| // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream. |
| - AudioOutputStream* MakeOutputStream(const AudioParameters& params); |
| + AudioOutputStream* MakeOutputStream(const AudioParameters& params, |
| + const std::string& device_id); |
| // Called by MakeLinearInputStream and MakeLowLatencyInputStream. |
| AudioInputStream* MakeInputStream(const AudioParameters& params, |