I'm having a problem where soxr_process() is not returning as many frames as I would expect. Currently I have the code set up to (using libsndfile) to read 4096 frames and that is working (I get back 4096 frames). I then hand the buffer to soxr_process and expect to get back 3763.2 frames (I'm still unclear how those fractional values get handled, so that could be my problem), but I'm generally seeing closer to ~2200 frames coming back.
If I take soxr out of the equation, and just read the file and write it back out there is no corruption, so it does seem to be some issue with how I'm using soxr_process.
Any ideas? I don't see any configuration issues with how I'm setting up the processor, but is this behavior a red flag for anything in particular, like a bad data type setting or something like that?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm having a problem where soxr_process() is not returning as many frames as I would expect. Currently I have the code set up to (using libsndfile) to read 4096 frames and that is working (I get back 4096 frames). I then hand the buffer to soxr_process and expect to get back 3763.2 frames (I'm still unclear how those fractional values get handled, so that could be my problem), but I'm generally seeing closer to ~2200 frames coming back.
If I take soxr out of the equation, and just read the file and write it back out there is no corruption, so it does seem to be some issue with how I'm using soxr_process.
Any ideas? I don't see any configuration issues with how I'm setting up the processor, but is this behavior a red flag for anything in particular, like a bad data type setting or something like that?
Thanks