I just tried the ThreadedWriter class to write audio into a wav file. I thought it would be a good idea to make it flush only every couple of seconds.
So I passed a large value, 44100 * 5 for the numSamples parameter of the constructor and then called setFlushInterval with a value of 44100 * 3.
I observed the filesize in the linux file manager and it grows about every 500ms or possibly quicker. Am I doing something wrong?