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

Unified Diff: media/audio/cras/audio_manager_cras.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 | « no previous file | media/audio/cras/audio_manager_cras.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e5a4b5b9e04a9c8e960f1d52451d6db1e5e792fe 100644
--- a/media/audio/cras/audio_manager_cras.h
+++ b/media/audio/cras/audio_manager_cras.h
@@ -52,6 +52,10 @@ class MEDIA_EXPORT AudioManagerCras : public AudioManagerBase {
static snd_pcm_format_t BitsToFormat(int bits_per_sample);
+ // Checks if |device_id| corresponds to the default device.
+ // Set |is_input| to true for capture devices, false for output.
+ bool IsDefault(const std::string& device_id, bool is_input);
+
protected:
~AudioManagerCras() override;
@@ -61,7 +65,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,
« no previous file with comments | « no previous file | media/audio/cras/audio_manager_cras.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698