OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ | 5 #ifndef MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ |
6 #define MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ | 6 #define MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 21 matching lines...) Expand all Loading... | |
32 | 32 |
33 virtual void MuteAll(); | 33 virtual void MuteAll(); |
34 virtual void UnMuteAll(); | 34 virtual void UnMuteAll(); |
35 | 35 |
36 virtual void ReleaseOutputStream(AudioOutputStream* stream); | 36 virtual void ReleaseOutputStream(AudioOutputStream* stream); |
37 | 37 |
38 protected: | 38 protected: |
39 virtual ~AudioManagerLinux(); | 39 virtual ~AudioManagerLinux(); |
40 | 40 |
41 private: | 41 private: |
42 // Helper method to query if there is any valid input device | 42 // 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.
| |
43 bool HasAnyValidAudioInputDevice(void** hint); | 43 enum StreamType { |
44 kStreamPlayback = 0, | |
45 kStreamCapture, | |
46 }; | |
47 | |
48 // 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.
| |
49 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.
| |
50 void GetAlsaDevicesInfo(void** hint, media::AudioDeviceNames* device_names); | |
51 bool IsAlsaDeviceAvailable(const char* device_name); | |
52 bool HasAnyAlsaAudioDevice(StreamType stream); | |
44 | 53 |
45 scoped_ptr<AlsaWrapper> wrapper_; | 54 scoped_ptr<AlsaWrapper> wrapper_; |
46 | 55 |
47 std::set<AudioOutputStream*> active_streams_; | 56 std::set<AudioOutputStream*> active_streams_; |
48 | 57 |
49 DISALLOW_COPY_AND_ASSIGN(AudioManagerLinux); | 58 DISALLOW_COPY_AND_ASSIGN(AudioManagerLinux); |
50 }; | 59 }; |
51 | 60 |
52 #endif // MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ | 61 #endif // MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ |
OLD | NEW |