OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_ALSA_AUDIO_MANAGER_ALSA_H_ | 5 #ifndef MEDIA_AUDIO_ALSA_AUDIO_MANAGER_ALSA_H_ |
6 #define MEDIA_AUDIO_ALSA_AUDIO_MANAGER_ALSA_H_ | 6 #define MEDIA_AUDIO_ALSA_AUDIO_MANAGER_ALSA_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
13 #include "media/audio/audio_manager_base.h" | 13 #include "media/audio/audio_manager_base.h" |
14 | 14 |
15 namespace media { | 15 namespace media { |
16 | 16 |
17 class AlsaWrapper; | 17 class AlsaWrapper; |
18 | 18 |
19 class MEDIA_EXPORT AudioManagerAlsa : public AudioManagerBase { | 19 class MEDIA_EXPORT AudioManagerAlsa : public AudioManagerBase { |
20 public: | 20 public: |
21 AudioManagerAlsa( | 21 AudioManagerAlsa(AudioLogFactory* audio_log_factory); |
22 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | |
23 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, | |
24 AudioLogFactory* audio_log_factory); | |
25 | 22 |
26 static void ShowLinuxAudioInputSettings(); | 23 static void ShowLinuxAudioInputSettings(); |
27 | 24 |
28 // Implementation of AudioManager. | 25 // Implementation of AudioManager. |
29 bool HasAudioOutputDevices() override; | 26 bool HasAudioOutputDevices() override; |
30 bool HasAudioInputDevices() override; | 27 bool HasAudioInputDevices() override; |
31 void ShowAudioInputSettings() override; | 28 void ShowAudioInputSettings() override; |
32 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; | 29 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; |
33 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; | 30 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; |
34 AudioParameters GetInputStreamParameters( | 31 AudioParameters GetInputStreamParameters( |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 const std::string& device_id); | 85 const std::string& device_id); |
89 | 86 |
90 scoped_ptr<AlsaWrapper> wrapper_; | 87 scoped_ptr<AlsaWrapper> wrapper_; |
91 | 88 |
92 DISALLOW_COPY_AND_ASSIGN(AudioManagerAlsa); | 89 DISALLOW_COPY_AND_ASSIGN(AudioManagerAlsa); |
93 }; | 90 }; |
94 | 91 |
95 } // namespace media | 92 } // namespace media |
96 | 93 |
97 #endif // MEDIA_AUDIO_ALSA_AUDIO_MANAGER_ALSA_H_ | 94 #endif // MEDIA_AUDIO_ALSA_AUDIO_MANAGER_ALSA_H_ |
OLD | NEW |