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

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

Issue 8162015: The first step to add device selection to linux. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: 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
Index: media/audio/linux/audio_manager_linux.h
===================================================================
--- media/audio/linux/audio_manager_linux.h (revision 104076)
+++ media/audio/linux/audio_manager_linux.h (working copy)
@@ -39,9 +39,18 @@
virtual ~AudioManagerLinux();
private:
- // Helper method to query if there is any valid input device
- bool HasAnyValidAudioInputDevice(void** hint);
+ // Types of the stream.
henrika (OOO until Aug 14) 2011/10/07 12:07:51 Comment not really needed.
no longer working on chromium 2011/10/10 13:49:24 Done.
+ enum StreamType {
+ kStreamPlayback = 0,
+ kStreamCapture,
+ };
+ // Helper methods to query if there is any valid input device
henrika (OOO until Aug 14) 2011/10/07 12:07:51 Do you mean "if there are any valid input devices"
no longer working on chromium 2011/10/10 13:49:24 Done.
+ void GetAlsaAudioInputDevices(media::AudioDeviceNames* device_names);
henrika (OOO until Aug 14) 2011/10/07 12:07:51 Some more comments here perhaps?
no longer working on chromium 2011/10/10 13:49:24 Done.
+ void GetAlsaDevicesInfo(void** hint, media::AudioDeviceNames* device_names);
+ bool IsAlsaDeviceAvailable(const char* device_name);
+ bool HasAnyAlsaAudioDevice(StreamType stream);
+
scoped_ptr<AlsaWrapper> wrapper_;
std::set<AudioOutputStream*> active_streams_;

Powered by Google App Engine
This is Rietveld 408576698