Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Side by Side Diff: media/audio/mac/audio_low_latency_output_mac.h

Issue 10833028: Make audio build on the Mac OS X 10.7 (Closed) Base URL: http://src.chromium.org/svn/trunk/src/media/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/audio/mac/audio_low_latency_input_mac.h ('k') | media/audio/mac/audio_output_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // 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 AUAudioOutputStream::HardwareSampleRate() to retrieve the sample rate. 9 // Use AUAudioOutputStream::HardwareSampleRate() to retrieve the sample rate.
10 // - Calling Close() also leads to self destruction. 10 // - Calling Close() also leads to self destruction.
11 // - The latency consists of two parts: 11 // - The latency consists of two parts:
12 // 1) Hardware latency, which includes Audio Unit latency, audio device 12 // 1) Hardware latency, which includes Audio Unit latency, audio device
13 // latency; 13 // latency;
14 // 2) The delay between the moment getting the callback and the scheduled time 14 // 2) The delay between the moment getting the callback and the scheduled time
15 // stamp that tells when the data is going to be played out. 15 // stamp that tells when the data is going to be played out.
16 // 16 //
17 #ifndef MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_OUTPUT_MAC_H_ 17 #ifndef MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_OUTPUT_MAC_H_
18 #define MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_OUTPUT_MAC_H_ 18 #define MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_OUTPUT_MAC_H_
19 19
20 #include <AudioUnit/AudioUnit.h> 20 #include <AudioUnit/AudioUnit.h>
21 #include <CoreAudio/CoreAudio.h>
21 22
22 #include "base/compiler_specific.h" 23 #include "base/compiler_specific.h"
23 #include "media/audio/audio_io.h" 24 #include "media/audio/audio_io.h"
24 #include "media/audio/audio_parameters.h" 25 #include "media/audio/audio_parameters.h"
25 26
26 namespace media { 27 namespace media {
27 28
28 class AudioManagerMac; 29 class AudioManagerMac;
29 30
30 // Implementation of AudioOuputStream for Mac OS X using the 31 // Implementation of AudioOuputStream for Mac OS X using the
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 98
98 // The flag used to stop the streaming. 99 // The flag used to stop the streaming.
99 bool stopped_; 100 bool stopped_;
100 101
101 DISALLOW_COPY_AND_ASSIGN(AUAudioOutputStream); 102 DISALLOW_COPY_AND_ASSIGN(AUAudioOutputStream);
102 }; 103 };
103 104
104 } // namespace media 105 } // namespace media
105 106
106 #endif // MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_OUTPUT_MAC_H_ 107 #endif // MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_OUTPUT_MAC_H_
OLDNEW
« no previous file with comments | « media/audio/mac/audio_low_latency_input_mac.h ('k') | media/audio/mac/audio_output_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698