Add some reset to -re-enable consecutive simulations

This commit is contained in:
Linus Torvalds 2025-07-08 10:11:39 +02:00 committed by Holger Vogt
parent d0c297db4f
commit b239ab4955
1 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,8 @@ int openfile_sf(int d, char* filename) {
rabbit[d] = src_new(SRC_SINC_BEST_QUALITY, m_channels[d], &(rabbit_err[d]));
src_set_ratio(rabbit[d], SRC_RATIO);
src_reset(rabbit[d]);
output_frames_generated[d] = 0;
input_frames_used[d] = 0;
#endif
nframes = sf_readf_float(m_sndfile[d], (interleaved[d]), nframes);