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_CRAS_AUDIO_MANAGER_CRAS_H_ | 5 #ifndef MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ |
6 #define MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ | 6 #define MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ |
7 | 7 |
8 #include <cras_types.h> | 8 #include <cras_types.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "media/audio/audio_manager_base.h" | 15 #include "media/audio/audio_manager_base.h" |
16 | 16 |
17 namespace media { | 17 namespace media { |
18 | 18 |
19 class MEDIA_EXPORT AudioManagerCras : public AudioManagerBase { | 19 class MEDIA_EXPORT AudioManagerCras : public AudioManagerBase { |
20 public: | 20 public: |
21 AudioManagerCras( | 21 AudioManagerCras(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 // AudioManager implementation. | 23 // AudioManager implementation. |
27 bool HasAudioOutputDevices() override; | 24 bool HasAudioOutputDevices() override; |
28 bool HasAudioInputDevices() override; | 25 bool HasAudioInputDevices() override; |
29 void ShowAudioInputSettings() override; | 26 void ShowAudioInputSettings() override; |
30 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; | 27 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; |
31 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; | 28 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; |
32 AudioParameters GetInputStreamParameters( | 29 AudioParameters GetInputStreamParameters( |
33 const std::string& device_id) override; | 30 const std::string& device_id) override; |
34 | 31 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 66 |
70 const char* beamforming_on_device_id_; | 67 const char* beamforming_on_device_id_; |
71 const char* beamforming_off_device_id_; | 68 const char* beamforming_off_device_id_; |
72 | 69 |
73 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); | 70 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); |
74 }; | 71 }; |
75 | 72 |
76 } // namespace media | 73 } // namespace media |
77 | 74 |
78 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ | 75 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ |
OLD | NEW |