# HG changeset patch # User Sam Lantinga # Date 1073251967 0 # Node ID 5c5656163ebd06b8c8ad1170e380b03d25a1cbbf # Parent 336603031bab3b1cb32a6cc3012848c65652885e Fix buffer underrun problems on slow iBooks diff -r 336603031bab -r 5c5656163ebd src/cdrom/macosx/AudioFilePlayer.cpp --- a/src/cdrom/macosx/AudioFilePlayer.cpp Sun Jan 04 18:50:26 2004 +0000 +++ b/src/cdrom/macosx/AudioFilePlayer.cpp Sun Jan 04 21:32:47 2004 +0000 @@ -110,8 +110,8 @@ 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");