From c2a880fa5236ec5b58051e12d8d86bfbe15f26e7 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sun, 31 Jul 2022 22:52:03 -0700 Subject: [PATCH] [AdPlug Input] Fixed seeking Looks like I never tested this, meh. Signed-off-by: Christopher Snowhill --- Plugins/AdPlug/AdPlug/AdPlugDecoder.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/AdPlug/AdPlug/AdPlugDecoder.mm b/Plugins/AdPlug/AdPlug/AdPlugDecoder.mm index 6e4d0033f..aa358ae89 100644 --- a/Plugins/AdPlug/AdPlug/AdPlugDecoder.mm +++ b/Plugins/AdPlug/AdPlug/AdPlugDecoder.mm @@ -151,7 +151,7 @@ static CAdPlugDatabase *g_database = NULL; current_pos += (long)ceil(sampleRate / m_player->getrefresh()); } - samples_todo = (UInt32)(frame - current_pos); + samples_todo = (UInt32)(current_pos - frame); return frame; }