mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-24 06:50:20 +01:00
cleanup: fix seeking in some cases
This commit is contained in:
parent
0d84937536
commit
4e9d4905d9
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user