If i remember correct SND_ResampleStream expect outspeed bytes in buffer.
But memory allocation occured when only less than 128 bytes leaves in buffer.
That cause buffer overflow.
Also segfaults occured not on this part of code, corrupted memory caused it later.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do you have an example or stack trace on this?
If i remember correct SND_ResampleStream expect outspeed bytes in buffer.
But memory allocation occured when only less than 128 bytes leaves in buffer.
That cause buffer overflow.
Also segfaults occured not on this part of code, corrupted memory caused it later.
(going through old issues)
has since been addressed upstream.
Moved to https://github.com/fte-team/fteqw/issues/55