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

Unified Diff: media/audio/linux/audio_manager_linux.h

Issue 8361031: Reland the CL 8162015. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 2 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/audio_device_name.cc ('k') | media/audio/linux/audio_manager_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/linux/audio_manager_linux.h
diff --git a/media/audio/linux/audio_manager_linux.h b/media/audio/linux/audio_manager_linux.h
index 77ea48154321f33947b76b6ebd207d81dd27bd8d..ed08a1a270acbeedc85f389a29c799c71219d767 100644
--- a/media/audio/linux/audio_manager_linux.h
+++ b/media/audio/linux/audio_manager_linux.h
@@ -42,8 +42,22 @@ class MEDIA_EXPORT AudioManagerLinux : public AudioManagerBase {
virtual ~AudioManagerLinux();
private:
- // Helper method to query if there is any valid input device
- bool HasAnyValidAudioInputDevice(void** hint);
+ enum StreamType {
+ kStreamPlayback = 0,
+ kStreamCapture,
+ };
+
+ // Gets a list of available ALSA input devices.
+ void GetAlsaAudioInputDevices(media::AudioDeviceNames* device_names);
+
+ // Gets the ALSA devices' names and ids.
+ void GetAlsaDevicesInfo(void** hint, media::AudioDeviceNames* device_names);
+
+ // Checks if the specific ALSA device is available.
+ bool IsAlsaDeviceAvailable(const char* device_name);
+
+ // Returns true if a device is present for the given stream type.
+ bool HasAnyAlsaAudioDevice(StreamType stream);
scoped_ptr<AlsaWrapper> wrapper_;
« no previous file with comments | « media/audio/audio_device_name.cc ('k') | media/audio/linux/audio_manager_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698