Mercurial > sdl-ios-xcode
diff src/cdrom/macosx/AudioFilePlayer.cpp @ 772:5c5656163ebd
Fix buffer underrun problems on slow iBooks
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 04 Jan 2004 21:32:47 +0000 |
parents | de1b2c3063b9 |
children | da0a2ad35bf4 |
line wrap: on
line diff
--- 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");