| 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( |
| 22 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 22 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
| 23 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, | 23 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, |
| 24 AudioLogFactory* audio_log_factory); | 24 AudioLogFactory* audio_log_factory, |
| 25 CreateAudioFileWriterCallback create_audio_file_writer_callback); |
| 25 | 26 |
| 26 // AudioManager implementation. | 27 // AudioManager implementation. |
| 27 bool HasAudioOutputDevices() override; | 28 bool HasAudioOutputDevices() override; |
| 28 bool HasAudioInputDevices() override; | 29 bool HasAudioInputDevices() override; |
| 29 void ShowAudioInputSettings() override; | 30 void ShowAudioInputSettings() override; |
| 30 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; | 31 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; |
| 31 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; | 32 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; |
| 32 AudioParameters GetInputStreamParameters( | 33 AudioParameters GetInputStreamParameters( |
| 33 const std::string& device_id) override; | 34 const std::string& device_id) override; |
| 34 const char* GetName() override; | 35 const char* GetName() override; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 77 |
| 77 const char* beamforming_on_device_id_; | 78 const char* beamforming_on_device_id_; |
| 78 const char* beamforming_off_device_id_; | 79 const char* beamforming_off_device_id_; |
| 79 | 80 |
| 80 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); | 81 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 } // namespace media | 84 } // namespace media |
| 84 | 85 |
| 85 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ | 86 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ |
| OLD | NEW |