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_MAC_AUDIO_MANAGER_MAC_H_ | 5 #ifndef MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_ |
6 #define MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_ | 6 #define MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_ |
7 | 7 |
8 #include <AudioUnit/AudioUnit.h> | 8 #include <AudioUnit/AudioUnit.h> |
9 #include <CoreAudio/AudioHardware.h> | 9 #include <CoreAudio/AudioHardware.h> |
10 #include <stddef.h> | 10 #include <stddef.h> |
(...skipping 14 matching lines...) Expand all Loading... |
25 class AUHALStream; | 25 class AUHALStream; |
26 | 26 |
27 // Mac OS X implementation of the AudioManager singleton. This class is internal | 27 // Mac OS X implementation of the AudioManager singleton. This class is internal |
28 // to the audio output and only internal users can call methods not exposed by | 28 // to the audio output and only internal users can call methods not exposed by |
29 // the AudioManager class. | 29 // the AudioManager class. |
30 class MEDIA_EXPORT AudioManagerMac : public AudioManagerBase { | 30 class MEDIA_EXPORT AudioManagerMac : public AudioManagerBase { |
31 public: | 31 public: |
32 AudioManagerMac( | 32 AudioManagerMac( |
33 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 33 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
34 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, | 34 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, |
35 AudioLogFactory* audio_log_factory); | 35 AudioLogFactory* audio_log_factory, |
| 36 CreateAudioFileWriterCallback create_audio_file_writer_callback); |
36 | 37 |
37 // Implementation of AudioManager. | 38 // Implementation of AudioManager. |
38 bool HasAudioOutputDevices() override; | 39 bool HasAudioOutputDevices() override; |
39 bool HasAudioInputDevices() override; | 40 bool HasAudioInputDevices() override; |
40 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; | 41 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; |
41 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; | 42 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; |
42 AudioParameters GetInputStreamParameters( | 43 AudioParameters GetInputStreamParameters( |
43 const std::string& device_id) override; | 44 const std::string& device_id) override; |
44 std::string GetAssociatedOutputDeviceID( | 45 std::string GetAssociatedOutputDeviceID( |
45 const std::string& input_device_id) override; | 46 const std::string& input_device_id) override; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 // Set to true in the destructor. Ensures that methods that touches native | 189 // Set to true in the destructor. Ensures that methods that touches native |
189 // Core Audio APIs are not executed during shutdown. | 190 // Core Audio APIs are not executed during shutdown. |
190 bool in_shutdown_; | 191 bool in_shutdown_; |
191 | 192 |
192 DISALLOW_COPY_AND_ASSIGN(AudioManagerMac); | 193 DISALLOW_COPY_AND_ASSIGN(AudioManagerMac); |
193 }; | 194 }; |
194 | 195 |
195 } // namespace media | 196 } // namespace media |
196 | 197 |
197 #endif // MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_ | 198 #endif // MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_ |
OLD | NEW |