The various soundtouch set*() functions may cause buffer (re)allocations which interferes with inputting the audio data.