From 4e75220661cdede1aed3465a6fed3049fbc29e50 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Mon, 24 Aug 2015 09:06:26 +1000 Subject: [PATCH] Define some error codes in PortAudioIO class --- libs/backends/portaudio/portaudio_io.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/libs/backends/portaudio/portaudio_io.h b/libs/backends/portaudio/portaudio_io.h index 661c6a07bb..8b04337c73 100644 --- a/libs/backends/portaudio/portaudio_io.h +++ b/libs/backends/portaudio/portaudio_io.h @@ -37,6 +37,20 @@ public: int state (void) const { return _state; } + enum ErrorCode { + NoError = 0, + InitializationError, + DeInitializationError, + DeviceConfigNotSupportedError, + StreamOpenError, + StreamStartError, + StreamStopError, + StreamCloseError, + IOError, + BufferUnderrunError, + BufferOverrunError + }; + enum StandardDevices { DeviceNone = -2, DeviceDefault = -1