[AdPlug Input] Fixed seeking

Looks like I never tested this, meh.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
main
Christopher Snowhill 2022-07-31 22:52:03 -07:00
parent 233dc424cb
commit 4d3274362c
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ static CAdPlugDatabase *g_database = NULL;
current_pos += (long)ceil(sampleRate / m_player->getrefresh()); current_pos += (long)ceil(sampleRate / m_player->getrefresh());
} }
samples_todo = (UInt32)(frame - current_pos); samples_todo = (UInt32)(current_pos - frame);
return frame; return frame;
} }