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(AudioLogFactory* audio_log_factory); | 21 AudioManagerAlsa( |
22 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | |
tommi (sloooow) - chröme
2016/03/19 02:32:41
sure you don't want const&?
alokp
2016/03/22 21:47:06
Please see my response in BrowserMainLoop.
| |
23 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, | |
24 AudioLogFactory* audio_log_factory); | |
22 | 25 |
23 static void ShowLinuxAudioInputSettings(); | 26 static void ShowLinuxAudioInputSettings(); |
24 | 27 |
25 // Implementation of AudioManager. | 28 // Implementation of AudioManager. |
26 bool HasAudioOutputDevices() override; | 29 bool HasAudioOutputDevices() override; |
27 bool HasAudioInputDevices() override; | 30 bool HasAudioInputDevices() override; |
28 void ShowAudioInputSettings() override; | 31 void ShowAudioInputSettings() override; |
29 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; | 32 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; |
30 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; | 33 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; |
31 AudioParameters GetInputStreamParameters( | 34 AudioParameters GetInputStreamParameters( |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
85 const std::string& device_id); | 88 const std::string& device_id); |
86 | 89 |
87 scoped_ptr<AlsaWrapper> wrapper_; | 90 scoped_ptr<AlsaWrapper> wrapper_; |
88 | 91 |
89 DISALLOW_COPY_AND_ASSIGN(AudioManagerAlsa); | 92 DISALLOW_COPY_AND_ASSIGN(AudioManagerAlsa); |
90 }; | 93 }; |
91 | 94 |
92 } // namespace media | 95 } // namespace media |
93 | 96 |
94 #endif // MEDIA_AUDIO_ALSA_AUDIO_MANAGER_ALSA_H_ | 97 #endif // MEDIA_AUDIO_ALSA_AUDIO_MANAGER_ALSA_H_ |
OLD | NEW |