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

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

Issue 10832285: Switch OnMoreData() to use AudioBus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Comments. Created 8 years, 3 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
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « media/audio/linux/cras_output_unittest.cc ('k') | media/audio/mac/audio_low_latency_output_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698