Struct std::AudioError
struct AudioError {
int code;
char message[AUDIO_ERROR_MESSAGE_MAX];
}Fields
AUDIO_OK or AUDIO_ERR_*
NUL-terminated, "" when ok
Methods
AUDIO_OK, empty message.
'code' with 'message' (truncated to fit).
§
static struct AudioError make2(int code, const &char prefix, const &char detail)source · definition'code' with "<prefix>: <detail>" — the usual "what failed: why".
§
static struct AudioError make_code(int code, const &char prefix, long long value)source · definition'code' with "<prefix> (<value>)", e.g. an HRESULT or OSStatus.
1 when code is AUDIO_OK or AUDIO_ERR_WARNING
!ok()