OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // Implementation notes: | 5 // Implementation notes: |
6 // | 6 // |
7 // - It is recommended to first acquire the native sample rate of the default | 7 // - It is recommended to first acquire the native sample rate of the default |
8 // output device and then use the same rate when creating this object. | 8 // output device and then use the same rate when creating this object. |
9 // Use AudioManagerMac::HardwareSampleRate() to retrieve the sample rate. | 9 // Use AudioManagerMac::HardwareSampleRate() to retrieve the sample rate. |
10 // - Calling Close() also leads to self destruction. | 10 // - Calling Close() also leads to self destruction. |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include <CoreAudio/CoreAudio.h> | 21 #include <CoreAudio/CoreAudio.h> |
22 #include <stddef.h> | 22 #include <stddef.h> |
23 #include <stdint.h> | 23 #include <stdint.h> |
24 | 24 |
25 #include "base/cancelable_callback.h" | 25 #include "base/cancelable_callback.h" |
26 #include "base/compiler_specific.h" | 26 #include "base/compiler_specific.h" |
27 #include "base/macros.h" | 27 #include "base/macros.h" |
28 #include "base/synchronization/lock.h" | 28 #include "base/synchronization/lock.h" |
29 #include "base/threading/thread_checker.h" | 29 #include "base/threading/thread_checker.h" |
30 #include "media/audio/audio_io.h" | 30 #include "media/audio/audio_io.h" |
31 #include "media/audio/audio_parameters.h" | 31 #include "media/base/audio_parameters.h" |
32 | 32 |
33 namespace media { | 33 namespace media { |
34 | 34 |
35 class AudioManagerMac; | 35 class AudioManagerMac; |
36 class AudioPullFifo; | 36 class AudioPullFifo; |
37 | 37 |
38 // Implementation of AudioOuputStream for Mac OS X using the | 38 // Implementation of AudioOuputStream for Mac OS X using the |
39 // AUHAL Audio Unit present in OS 10.4 and later. | 39 // AUHAL Audio Unit present in OS 10.4 and later. |
40 // It is useful for low-latency output. | 40 // It is useful for low-latency output. |
41 // | 41 // |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // Used to make sure control functions (Start(), Stop() etc) are called on the | 212 // Used to make sure control functions (Start(), Stop() etc) are called on the |
213 // right thread. | 213 // right thread. |
214 base::ThreadChecker thread_checker_; | 214 base::ThreadChecker thread_checker_; |
215 | 215 |
216 DISALLOW_COPY_AND_ASSIGN(AUHALStream); | 216 DISALLOW_COPY_AND_ASSIGN(AUHALStream); |
217 }; | 217 }; |
218 | 218 |
219 } // namespace media | 219 } // namespace media |
220 | 220 |
221 #endif // MEDIA_AUDIO_MAC_AUDIO_AUHAL_MAC_H_ | 221 #endif // MEDIA_AUDIO_MAC_AUDIO_AUHAL_MAC_H_ |
OLD | NEW |