Navigation Menu

Skip to content

Commit

Permalink
Fix buffer underrun problems on slow iBooks
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 4, 2004
1 parent 6db1f10 commit 0780836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cdrom/macosx/AudioFilePlayer.cpp
Expand Up @@ -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");
Expand Down

0 comments on commit 0780836

Please sign in to comment.