Fix buffer underrun problems on slow iBooks
authorSam Lantinga
Sun, 04 Jan 2004 21:32:47 +0000
changeset 7725c5656163ebd
parent 771 336603031bab
child 773 da0a2ad35bf4
Fix buffer underrun problems on slow iBooks
src/cdrom/macosx/AudioFilePlayer.cpp
     1.1 --- a/src/cdrom/macosx/AudioFilePlayer.cpp	Sun Jan 04 18:50:26 2004 +0000
     1.2 +++ b/src/cdrom/macosx/AudioFilePlayer.cpp	Sun Jan 04 21:32:47 2004 +0000
     1.3 @@ -110,8 +110,8 @@
     1.4  
     1.5      OpenFile (inFileRef, fileDataSize);
     1.6          
     1.7 -    // we want about a seconds worth of data for the buffer
     1.8 -    int bytesPerSecond = UInt32 (mFileDescription.mSampleRate * mFileDescription.mBytesPerFrame);
     1.9 +    // we want about 4 seconds worth of data for the buffer
    1.10 +    int bytesPerSecond = UInt32 (4 * mFileDescription.mSampleRate * mFileDescription.mBytesPerFrame);
    1.11      
    1.12  #if DEBUG
    1.13      printf("File format:\n");