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/CoreAudio.h> |
11 | 12 |
12 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
13 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
14 #include "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
15 #include "media/audio/audio_io.h" | 16 #include "media/audio/audio_io.h" |
16 #include "media/audio/audio_parameters.h" | 17 #include "media/audio/audio_parameters.h" |
17 | 18 |
18 namespace media { | 19 namespace media { |
19 | 20 |
20 class AudioManagerMac; | 21 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 | 104 // When stopping we keep track of number of buffers in flight and |
104 // signal "stop completed" from the last buffer's callback. | 105 // signal "stop completed" from the last buffer's callback. |
105 int num_buffers_left_; | 106 int num_buffers_left_; |
106 | 107 |
107 DISALLOW_COPY_AND_ASSIGN(PCMQueueOutAudioOutputStream); | 108 DISALLOW_COPY_AND_ASSIGN(PCMQueueOutAudioOutputStream); |
108 }; | 109 }; |
109 | 110 |
110 } // namespace media | 111 } // namespace media |
111 | 112 |
112 #endif // MEDIA_AUDIO_MAC_AUDIO_OUTPUT_MAC_H_ | 113 #endif // MEDIA_AUDIO_MAC_AUDIO_OUTPUT_MAC_H_ |
OLD | NEW |