summaryrefslogtreecommitdiffstats
path: root/media/audio/linux/audio_manager_linux.h
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-01 17:15:57 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-01 17:15:57 +0000
commita6e6910a717353139ce540da41ded6986c004ee3 (patch)
tree881ca6e0889a7873402512da1d8ec8e99b06692d /media/audio/linux/audio_manager_linux.h
parentb2ab4efc5aca698fa6a8f6c518b2cab54eb4f28d (diff)
downloadchromium_src-a6e6910a717353139ce540da41ded6986c004ee3.zip
chromium_src-a6e6910a717353139ce540da41ded6986c004ee3.tar.gz
chromium_src-a6e6910a717353139ce540da41ded6986c004ee3.tar.bz2
Adding GetAudioInputDeviceNames() to AudioManager, which allows for device enumeration.
The current version only supports the default device and isn't fully implemented for Mac/Windows yet. Patch by xians@chromium.org: http://codereview.chromium.org/7060011/ BUG=none TEST=media_unittests git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87493 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/linux/audio_manager_linux.h')
-rw-r--r--media/audio/linux/audio_manager_linux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/audio/linux/audio_manager_linux.h b/media/audio/linux/audio_manager_linux.h
index b7d43f0..6a5d287 100644
--- a/media/audio/linux/audio_manager_linux.h
+++ b/media/audio/linux/audio_manager_linux.h
@@ -30,6 +30,7 @@ class AudioManagerLinux : public AudioManagerBase {
virtual AudioInputStream* MakeAudioInputStream(AudioParameters params);
virtual bool CanShowAudioInputSettings();
virtual void ShowAudioInputSettings();
+ virtual void GetAudioInputDeviceNames(media::AudioDeviceNames* device_names);
virtual void MuteAll();
virtual void UnMuteAll();
@@ -40,6 +41,9 @@ class AudioManagerLinux : public AudioManagerBase {
virtual ~AudioManagerLinux();
private:
+ // Helper method to query if there is any valid input device
+ bool HasAnyValidAudioInputDevice(void** hint);
+
scoped_ptr<AlsaWrapper> wrapper_;
base::Lock lock_;