check for correct return value
fix crash
check for correct return value
wait for threads on read buffer empty, fix locks
estimate best fft algorithm