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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 46 |
47 // Implementation of AudioManagerBase. | 47 // Implementation of AudioManagerBase. |
48 AudioOutputStream* MakeLinearOutputStream( | 48 AudioOutputStream* MakeLinearOutputStream( |
49 const AudioParameters& params) override; | 49 const AudioParameters& params) override; |
50 AudioOutputStream* MakeLowLatencyOutputStream( | 50 AudioOutputStream* MakeLowLatencyOutputStream( |
51 const AudioParameters& params, | 51 const AudioParameters& params, |
52 const std::string& device_id) override; | 52 const std::string& device_id, |
| 53 const StatisticsCallback& statistics_callback) override; |
53 AudioInputStream* MakeLinearInputStream( | 54 AudioInputStream* MakeLinearInputStream( |
54 const AudioParameters& params, | 55 const AudioParameters& params, |
55 const std::string& device_id) override; | 56 const std::string& device_id) override; |
56 AudioInputStream* MakeLowLatencyInputStream( | 57 AudioInputStream* MakeLowLatencyInputStream( |
57 const AudioParameters& params, | 58 const AudioParameters& params, |
58 const std::string& device_id) override; | 59 const std::string& device_id) override; |
59 std::string GetDefaultOutputDeviceID() override; | 60 std::string GetDefaultOutputDeviceID() override; |
60 | 61 |
61 // Used to track destruction of input and output streams. | 62 // Used to track destruction of input and output streams. |
62 void ReleaseOutputStream(AudioOutputStream* stream) override; | 63 void ReleaseOutputStream(AudioOutputStream* stream) override; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // Maps device IDs and their corresponding actual (I/O) buffer sizes for | 179 // Maps device IDs and their corresponding actual (I/O) buffer sizes for |
179 // all output streams using the specific device. | 180 // all output streams using the specific device. |
180 std::map<AudioDeviceID, size_t> output_io_buffer_size_map_; | 181 std::map<AudioDeviceID, size_t> output_io_buffer_size_map_; |
181 | 182 |
182 DISALLOW_COPY_AND_ASSIGN(AudioManagerMac); | 183 DISALLOW_COPY_AND_ASSIGN(AudioManagerMac); |
183 }; | 184 }; |
184 | 185 |
185 } // namespace media | 186 } // namespace media |
186 | 187 |
187 #endif // MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_ | 188 #endif // MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_ |
OLD | NEW |