Fixed a PortAudio issue and buffering issues.