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..2c03884a31a609e8f2dd637120cb0bdbce4f67a0 100644 |
--- a/media/audio/mac/audio_low_latency_output_mac.cc |
+++ b/media/audio/mac/audio_low_latency_output_mac.cc |
@@ -81,7 +81,9 @@ 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_, parameters.frames_per_buffer()); |
} |
AUAudioOutputStream::~AUAudioOutputStream() { |
@@ -167,7 +169,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( |