| 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(AudioLogFactory* audio_log_factory); | 21 AudioManagerCras( |
| 22 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
| 23 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, |
| 24 AudioLogFactory* audio_log_factory); |
| 22 | 25 |
| 23 // AudioManager implementation. | 26 // AudioManager implementation. |
| 24 bool HasAudioOutputDevices() override; | 27 bool HasAudioOutputDevices() override; |
| 25 bool HasAudioInputDevices() override; | 28 bool HasAudioInputDevices() override; |
| 26 void ShowAudioInputSettings() override; | 29 void ShowAudioInputSettings() override; |
| 27 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; | 30 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; |
| 28 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; | 31 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; |
| 29 AudioParameters GetInputStreamParameters( | 32 AudioParameters GetInputStreamParameters( |
| 30 const std::string& device_id) override; | 33 const std::string& device_id) override; |
| 31 | 34 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 69 |
| 67 const char* beamforming_on_device_id_; | 70 const char* beamforming_on_device_id_; |
| 68 const char* beamforming_off_device_id_; | 71 const char* beamforming_off_device_id_; |
| 69 | 72 |
| 70 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); | 73 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); |
| 71 }; | 74 }; |
| 72 | 75 |
| 73 } // namespace media | 76 } // namespace media |
| 74 | 77 |
| 75 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ | 78 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ |
| OLD | NEW |