From 07808364e5183c4efbe79a09e1beb0ee828394e3 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 4 Jan 2004 21:32:47 +0000 Subject: [PATCH] Fix buffer underrun problems on slow iBooks --- src/cdrom/macosx/AudioFilePlayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cdrom/macosx/AudioFilePlayer.cpp b/src/cdrom/macosx/AudioFilePlayer.cpp index f0cb6426f..465823458 100644 --- a/src/cdrom/macosx/AudioFilePlayer.cpp +++ b/src/cdrom/macosx/AudioFilePlayer.cpp @@ -110,8 +110,8 @@ AudioFilePlayer::AudioFilePlayer (const FSRef *inFileRef) OpenFile (inFileRef, fileDataSize); - // we want about a seconds worth of data for the buffer - int bytesPerSecond = UInt32 (mFileDescription.mSampleRate * mFileDescription.mBytesPerFrame); + // we want about 4 seconds worth of data for the buffer + int bytesPerSecond = UInt32 (4 * mFileDescription.mSampleRate * mFileDescription.mBytesPerFrame); #if DEBUG printf("File format:\n");