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_OUTPUT_MAC_H_ | 5 #ifndef MEDIA_AUDIO_MAC_AUDIO_OUTPUT_MAC_H_ |
6 #define MEDIA_AUDIO_MAC_AUDIO_OUTPUT_MAC_H_ | 6 #define MEDIA_AUDIO_MAC_AUDIO_OUTPUT_MAC_H_ |
7 | 7 |
8 #include <AudioToolbox/AudioFormat.h> | 8 #include <AudioToolbox/AudioFormat.h> |
9 #include <AudioToolbox/AudioQueue.h> | 9 #include <AudioToolbox/AudioQueue.h> |
10 #include <AudioUnit/AudioUnit.h> | 10 #include <AudioUnit/AudioUnit.h> |
| 11 #include <CoreAudio/CoreAudioTypes.h> |
| 12 #include <CoreAudio/AudioHardware.h> |
11 | 13 |
12 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
13 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
14 #include "base/synchronization/waitable_event.h" | 16 #include "base/synchronization/waitable_event.h" |
15 #include "media/audio/audio_io.h" | 17 #include "media/audio/audio_io.h" |
16 #include "media/audio/audio_parameters.h" | 18 #include "media/audio/audio_parameters.h" |
17 | 19 |
18 namespace media { | 20 namespace media { |
19 | 21 |
20 class AudioManagerMac; | 22 class AudioManagerMac; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // When stopping we keep track of number of buffers in flight and | 105 // When stopping we keep track of number of buffers in flight and |
104 // signal "stop completed" from the last buffer's callback. | 106 // signal "stop completed" from the last buffer's callback. |
105 int num_buffers_left_; | 107 int num_buffers_left_; |
106 | 108 |
107 DISALLOW_COPY_AND_ASSIGN(PCMQueueOutAudioOutputStream); | 109 DISALLOW_COPY_AND_ASSIGN(PCMQueueOutAudioOutputStream); |
108 }; | 110 }; |
109 | 111 |
110 } // namespace media | 112 } // namespace media |
111 | 113 |
112 #endif // MEDIA_AUDIO_MAC_AUDIO_OUTPUT_MAC_H_ | 114 #endif // MEDIA_AUDIO_MAC_AUDIO_OUTPUT_MAC_H_ |
OLD | NEW |