| Index: media/audio/mac/audio_low_latency_output_mac.cc
|
| diff --git a/media/audio/mac/audio_low_latency_output_mac.cc b/media/audio/mac/audio_low_latency_output_mac.cc
|
| index 6ab0ead56d7b467dc0c7e50cabbb942788a2483c..4b82befc7850dcb4aa08553de5e96306ff922b67 100644
|
| --- a/media/audio/mac/audio_low_latency_output_mac.cc
|
| +++ b/media/audio/mac/audio_low_latency_output_mac.cc
|
| @@ -81,7 +81,10 @@ AUAudioOutputStream::AUAudioOutputStream(
|
| // Calculate the number of sample frames per callback.
|
| number_of_frames_ = params.GetBytesPerBuffer() / format_.mBytesPerPacket;
|
| DVLOG(1) << "Number of frames per callback: " << number_of_frames_;
|
| - CHECK_EQ(number_of_frames_, GetAudioHardwareBufferSize());
|
| + const AudioParameters parameters =
|
| + manager_->GetDefaultOutputStreamParameters();
|
| + CHECK_EQ(number_of_frames_,
|
| + static_cast<size_t>(parameters.frames_per_buffer()));
|
| }
|
|
|
| AUAudioOutputStream::~AUAudioOutputStream() {
|
| @@ -167,7 +170,8 @@ bool AUAudioOutputStream::Configure() {
|
| // Set the buffer frame size.
|
| // WARNING: Setting this value changes the frame size for all audio units in
|
| // the current process. It's imperative that the input and output frame sizes
|
| - // be the same as audio_util::GetAudioHardwareBufferSize().
|
| + // be the same as the frames_per_buffer() returned by
|
| + // GetDefaultOutputStreamParameters.
|
| // See http://crbug.com/154352 for details.
|
| UInt32 buffer_size = number_of_frames_;
|
| result = AudioUnitSetProperty(
|
|
|