Bug Fix: Fix minimp3 seek position
Some checks are pending
Check if Cog buildable / Build Universal Cog.app (push) Waiting to run

Seek offset is scaled by the number of channels in the file. Oops again.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-03-23 20:22:27 -07:00
parent 184e1f14c9
commit ac93ff038e

View file

@ -293,7 +293,7 @@ static int mp3_seek_callback(uint64_t position, void *user_data) {
frame = totalFrames; frame = totalFrames;
if(seekable) { if(seekable) {
int error = mp3dec_ex_seek(&_decoder_ex, frame); int error = mp3dec_ex_seek(&_decoder_ex, frame * _decoder_ex.info.channels);
if(error < 0) { if(error < 0) {
return -1; return -1;
} }