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

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

Issue 9834098: fix crash in AUAudioOutputStream::Render() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed Chris's comments Created 8 years, 9 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 | « no previous file | media/audio/mac/audio_low_latency_output_mac.cc » ('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.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « no previous file | media/audio/mac/audio_low_latency_output_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698