diff --git a/mp3-stream.cpp b/mp3-stream.cpp index ee818b9..9a337dd 100644 --- a/mp3-stream.cpp +++ b/mp3-stream.cpp @@ -385,8 +385,8 @@ void MP3Stream::callback() { if(dataSize[curAudioBuf]) { + // recover from underrun endSample = audioBuf[curAudioBuf] + dataSize[curAudioBuf]; - blit::debug("recovered\n"); } else { @@ -414,8 +414,9 @@ void MP3Stream::callback() { currentSample = audioBuf[curAudioBuf]; endSample = currentSample + dataSize[curAudioBuf]; - if(currentSample == endSample) - blit::debug("underrun!\n"); + + // if(currentSample == endSample) + // no more samples available - underrun } } diff --git a/vorbis-stream.cpp b/vorbis-stream.cpp index 4ced942..66f1d95 100644 --- a/vorbis-stream.cpp +++ b/vorbis-stream.cpp @@ -255,8 +255,8 @@ void VorbisStream::callback() { if(dataSize[curAudioBuf]) { + // recover from underrun endSample = audioBuf[curAudioBuf] + dataSize[curAudioBuf]; - blit::debug("recovered\n"); } else { @@ -283,8 +283,9 @@ void VorbisStream::callback() { currentSample = audioBuf[curAudioBuf]; endSample = currentSample + dataSize[curAudioBuf]; - if(currentSample == endSample) - blit::debug("underrun!\n"); + + // if(currentSample == endSample) + // no more samples available - underrun } }