Initial portaudio implementation