Use portaudio error codes in the PortaudioIO class.