PortAudio stuff - first attempt.