Raise PortAudio::APIError instead of RuntimeError