| 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // Implementation of AudioManager. | 37 // Implementation of AudioManager. |
| 38 bool HasAudioOutputDevices() override; | 38 bool HasAudioOutputDevices() override; |
| 39 bool HasAudioInputDevices() override; | 39 bool HasAudioInputDevices() override; |
| 40 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; | 40 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; |
| 41 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; | 41 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; |
| 42 AudioParameters GetInputStreamParameters( | 42 AudioParameters GetInputStreamParameters( |
| 43 const std::string& device_id) override; | 43 const std::string& device_id) override; |
| 44 std::string GetAssociatedOutputDeviceID( | 44 std::string GetAssociatedOutputDeviceID( |
| 45 const std::string& input_device_id) override; | 45 const std::string& input_device_id) override; |
| 46 const char* GetName() override; |
| 46 | 47 |
| 47 // Implementation of AudioManagerBase. | 48 // Implementation of AudioManagerBase. |
| 48 AudioOutputStream* MakeLinearOutputStream( | 49 AudioOutputStream* MakeLinearOutputStream( |
| 49 const AudioParameters& params, | 50 const AudioParameters& params, |
| 50 const LogCallback& log_callback) override; | 51 const LogCallback& log_callback) override; |
| 51 AudioOutputStream* MakeLowLatencyOutputStream( | 52 AudioOutputStream* MakeLowLatencyOutputStream( |
| 52 const AudioParameters& params, | 53 const AudioParameters& params, |
| 53 const std::string& device_id, | 54 const std::string& device_id, |
| 54 const LogCallback& log_callback) override; | 55 const LogCallback& log_callback) override; |
| 55 AudioInputStream* MakeLinearInputStream( | 56 AudioInputStream* MakeLinearInputStream( |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // Set to true in the destructor. Ensures that methods that touches native | 188 // Set to true in the destructor. Ensures that methods that touches native |
| 188 // Core Audio APIs are not executed during shutdown. | 189 // Core Audio APIs are not executed during shutdown. |
| 189 bool in_shutdown_; | 190 bool in_shutdown_; |
| 190 | 191 |
| 191 DISALLOW_COPY_AND_ASSIGN(AudioManagerMac); | 192 DISALLOW_COPY_AND_ASSIGN(AudioManagerMac); |
| 192 }; | 193 }; |
| 193 | 194 |
| 194 } // namespace media | 195 } // namespace media |
| 195 | 196 |
| 196 #endif // MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_ | 197 #endif // MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_ |
| OLD | NEW |