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

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

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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
OLDNEW
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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 bool stopped_; 175 bool stopped_;
176 176
177 // Container for retrieving data from AudioSourceCallback::OnMoreData(). 177 // Container for retrieving data from AudioSourceCallback::OnMoreData().
178 scoped_ptr<AudioBus> output_bus_; 178 scoped_ptr<AudioBus> output_bus_;
179 179
180 // Dynamically allocated FIFO used when CoreAudio asks for unexpected frame 180 // Dynamically allocated FIFO used when CoreAudio asks for unexpected frame
181 // sizes. 181 // sizes.
182 scoped_ptr<AudioPullFifo> audio_fifo_; 182 scoped_ptr<AudioPullFifo> audio_fifo_;
183 183
184 // Current buffer delay. Set by Render(). 184 // Current buffer delay. Set by Render().
185 uint32 current_hardware_pending_bytes_; 185 uint32_t current_hardware_pending_bytes_;
186 186
187 // Lost frames not yet reported to the provider. Increased in 187 // Lost frames not yet reported to the provider. Increased in
188 // UpdatePlayoutTimestamp() if any lost frame since last time. Forwarded to 188 // UpdatePlayoutTimestamp() if any lost frame since last time. Forwarded to
189 // the provider and reset in ProvideInput(). 189 // the provider and reset in ProvideInput().
190 uint32_t current_lost_frames_; 190 uint32_t current_lost_frames_;
191 191
192 // Stores the timestamp of the previous audio buffer requested by the OS. 192 // Stores the timestamp of the previous audio buffer requested by the OS.
193 // We use this in combination with |last_number_of_frames_| to detect when 193 // We use this in combination with |last_number_of_frames_| to detect when
194 // the OS has decided to skip rendering frames (i.e. a glitch). 194 // the OS has decided to skip rendering frames (i.e. a glitch).
195 // This can happen in case of high CPU load or excessive blocking on the 195 // This can happen in case of high CPU load or excessive blocking on the
(...skipping 13 matching lines...) Expand all
209 // Used to make sure control functions (Start(), Stop() etc) are called on the 209 // Used to make sure control functions (Start(), Stop() etc) are called on the
210 // right thread. 210 // right thread.
211 base::ThreadChecker thread_checker_; 211 base::ThreadChecker thread_checker_;
212 212
213 DISALLOW_COPY_AND_ASSIGN(AUHALStream); 213 DISALLOW_COPY_AND_ASSIGN(AUHALStream);
214 }; 214 };
215 215
216 } // namespace media 216 } // namespace media
217 217
218 #endif // MEDIA_AUDIO_MAC_AUDIO_AUHAL_MAC_H_ 218 #endif // MEDIA_AUDIO_MAC_AUDIO_AUHAL_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698