mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-17 19:19:16 +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;
|
to_do = buf_samples;
|
||||||
sbuf_tmp.samples = to_do;
|
sbuf_tmp.samples = to_do;
|
||||||
render_layout(&sbuf_tmp, vgmstream);
|
render_layout(&sbuf_tmp, vgmstream);
|
||||||
|
|
||||||
/* no mixing */
|
/* no mixing */
|
||||||
samples -= to_do;
|
samples -= to_do;
|
||||||
|
|
||||||
|
sbuf_tmp.filled = 0; // discard buf
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user