Skip to content

Commit

Permalink
Improve MP3 sync
Browse files Browse the repository at this point in the history
The next "source frame" shouldn't be determined by the current one
because... that wouldn't be the next one.
  • Loading branch information
martensm committed Oct 11, 2017
1 parent cb508d0 commit 52fbe37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RageSoundReader_MP3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ int RageSoundReader_MP3::WriteSamplesForAllChannels(void *pBuf, int samplesToRea

int RageSoundReader_MP3::GetNextSourceFrame() const
{
return curFrame;
return curFrame + codecCtx->frame_size;
}

// Return: -1 => Error already set. -2 => EOF. >=0 => bytesRead
Expand Down

0 comments on commit 52fbe37

Please sign in to comment.