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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 // The UID refers to the current output audio device. | 87 // The UID refers to the current output audio device. |
88 AudioDeviceID output_device_id_; | 88 AudioDeviceID output_device_id_; |
89 | 89 |
90 // Volume level from 0 to 1. | 90 // Volume level from 0 to 1. |
91 float volume_; | 91 float volume_; |
92 | 92 |
93 // Fixed playout hardware latency in frames. | 93 // Fixed playout hardware latency in frames. |
94 double hardware_latency_frames_; | 94 double hardware_latency_frames_; |
95 | 95 |
| 96 // The flag used to stop the streaming. |
| 97 bool stopped_; |
| 98 |
96 DISALLOW_COPY_AND_ASSIGN(AUAudioOutputStream); | 99 DISALLOW_COPY_AND_ASSIGN(AUAudioOutputStream); |
97 }; | 100 }; |
98 | 101 |
99 #endif // MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_OUTPUT_MAC_H_ | 102 #endif // MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_OUTPUT_MAC_H_ |
OLD | NEW |