How many frames does soxr output if, given ilen input frames, olen = ilen*orate/irate is not an integer? I'm working on an application where I'm streaming data in and out on stdio (like examples 2 and 3), and need to output a WAV header before soxr's output -- which requires knowing the exact number of output frames in advance, since I can't seek on stdout to patch up the header later. (This is assuming constant-rate files, of course.)
Last edit: Peter Hebert 2022-04-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How many frames does soxr output if, given
ilen
input frames,olen = ilen*orate/irate
is not an integer? I'm working on an application where I'm streaming data in and out on stdio (like examples 2 and 3), and need to output a WAV header before soxr's output -- which requires knowing the exact number of output frames in advance, since I can't seek on stdout to patch up the header later. (This is assuming constant-rate files, of course.)Last edit: Peter Hebert 2022-04-26