Skip to content

Commit 752e492

Browse files
committed
GME Input: Fix seeking
This should be converting samples to milliseconds, not the other way around. Signed-off-by: Christopher Snowhill <[email protected]>
1 parent 13e9813 commit 752e492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Plugins/GME/GameDecoder.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ - (AudioChunk *)readAudio {
210210

211211
- (long)seek:(long)frame {
212212
gme_err_t error;
213-
error = gme_seek(emu, frame * sampleRate * 0.001);
213+
error = gme_seek(emu, frame / (sampleRate * 0.001));
214214
if(error) {
215215
return -1;
216216
}

0 commit comments

Comments
 (0)