| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WIN_AUDIO_MANAGER_WIN_H_ | 5 #ifndef MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ |
| 6 #define MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ | 6 #define MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "media/audio/audio_manager_base.h" | 12 #include "media/audio/audio_manager_base.h" |
| 13 | 13 |
| 14 namespace media { | 14 namespace media { |
| 15 | 15 |
| 16 class AudioDeviceListenerWin; | 16 class AudioDeviceListenerWin; |
| 17 | 17 |
| 18 // Windows implementation of the AudioManager singleton. This class is internal | 18 // Windows implementation of the AudioManager singleton. This class is internal |
| 19 // to the audio output and only internal users can call methods not exposed by | 19 // to the audio output and only internal users can call methods not exposed by |
| 20 // the AudioManager class. | 20 // the AudioManager class. |
| 21 class MEDIA_EXPORT AudioManagerWin : public AudioManagerBase { | 21 class MEDIA_EXPORT AudioManagerWin : public AudioManagerBase { |
| 22 public: | 22 public: |
| 23 AudioManagerWin( | 23 AudioManagerWin( |
| 24 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 24 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
| 25 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, | 25 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, |
| 26 AudioLogFactory* audio_log_factory); | 26 AudioLogFactory* audio_log_factory, |
| 27 CreateAudioFileWriterCallback create_audio_file_writer_callback); |
| 27 | 28 |
| 28 // Implementation of AudioManager. | 29 // Implementation of AudioManager. |
| 29 bool HasAudioOutputDevices() override; | 30 bool HasAudioOutputDevices() override; |
| 30 bool HasAudioInputDevices() override; | 31 bool HasAudioInputDevices() override; |
| 31 base::string16 GetAudioInputDeviceModel() override; | 32 base::string16 GetAudioInputDeviceModel() override; |
| 32 void ShowAudioInputSettings() override; | 33 void ShowAudioInputSettings() override; |
| 33 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; | 34 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; |
| 34 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; | 35 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; |
| 35 AudioParameters GetInputStreamParameters( | 36 AudioParameters GetInputStreamParameters( |
| 36 const std::string& device_id) override; | 37 const std::string& device_id) override; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 100 |
| 100 // Listen for output device changes. | 101 // Listen for output device changes. |
| 101 std::unique_ptr<AudioDeviceListenerWin> output_device_listener_; | 102 std::unique_ptr<AudioDeviceListenerWin> output_device_listener_; |
| 102 | 103 |
| 103 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); | 104 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace media | 107 } // namespace media |
| 107 | 108 |
| 108 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ | 109 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ |
| OLD | NEW |