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 // 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. |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 // Volume level from 0 to 1. | 93 // Volume level from 0 to 1. |
94 float volume_; | 94 float volume_; |
95 | 95 |
96 // Fixed playout hardware latency in frames. | 96 // Fixed playout hardware latency in frames. |
97 double hardware_latency_frames_; | 97 double hardware_latency_frames_; |
98 | 98 |
99 // The flag used to stop the streaming. | 99 // The flag used to stop the streaming. |
100 bool stopped_; | 100 bool stopped_; |
101 | 101 |
| 102 // Container for retrieving data from AudioSourceCallback::OnMoreData(). |
| 103 scoped_ptr<AudioBus> audio_bus_; |
| 104 |
102 DISALLOW_COPY_AND_ASSIGN(AUAudioOutputStream); | 105 DISALLOW_COPY_AND_ASSIGN(AUAudioOutputStream); |
103 }; | 106 }; |
104 | 107 |
105 } // namespace media | 108 } // namespace media |
106 | 109 |
107 #endif // MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_OUTPUT_MAC_H_ | 110 #endif // MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_OUTPUT_MAC_H_ |
OLD | NEW |