cleanup: fix seeking in some cases

This commit is contained in:
bnnm 2024-09-08 21:03:44 +02:00
parent 0d84937536
commit 4e9d4905d9

View File

@ -31,8 +31,11 @@ static void seek_force_decode(VGMSTREAM* vgmstream, int samples) {
to_do = buf_samples;
sbuf_tmp.samples = to_do;
render_layout(&sbuf_tmp, vgmstream);
/* no mixing */
samples -= to_do;
sbuf_tmp.filled = 0; // discard buf
}
}