[AdPlug Input] Fixed seeking

Looks like I never tested this, meh.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
xcode15
Christopher Snowhill 2022-07-31 22:52:03 -07:00
parent 700cb962a3
commit c2a880fa52
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());
}
samples_todo = (UInt32)(frame - current_pos);
samples_todo = (UInt32)(current_pos - frame);
return frame;
}