Skip to content

Commit

Permalink
oh right this can be negative outside of audio sync
Browse files Browse the repository at this point in the history
  • Loading branch information
CasualPokePlayer committed Mar 8, 2022
1 parent 3b7a652 commit d481c8e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main/vcr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1887,14 +1887,14 @@ VCR_updateScreen()

int audio_frames = m_audioFrame - m_videoFrame;

if (audio_frames < 0)
{
printError("Audio frames became negative!");
VCR_stopCapture();
}

if (Config.SyncMode == VCR_SYNC_AUDIO_DUPL)
{
if (audio_frames < 0)
{
printError("Audio frames became negative!");
VCR_stopCapture();
}

if (audio_frames == 0)
{
printf("\nDropped Frame! a/v: %f/%f", m_videoFrame, m_audioFrame);
Expand Down

0 comments on commit d481c8e

Please sign in to comment.