more fixes for pyaudio, improved IR generation