Group error_codes

group error_codes

Audio devive library specific error codes.

Defines

PJMEDIA_AUDIODEV_ERRNO_START

Start of error code relative to PJ_ERRNO_START_USER. This value is 420000.

PJMEDIA_AUDIODEV_ERRNO_END
PJMEDIA_AUDIODEV_PORTAUDIO_ERRNO_START

Mapping from PortAudio error codes to pjmedia error space.

PJMEDIA_AUDIODEV_PORTAUDIO_ERRNO_END
PJMEDIA_AUDIODEV_ERRNO_FROM_PORTAUDIO(err)

Convert PortAudio error code to PJLIB error code. PortAudio error code range: 0 >= err >= -10000

PJMEDIA_AUDIODEV_WMME_IN_ERROR_START

Mapping from Windows multimedia WaveIn error codes.

PJMEDIA_AUDIODEV_WMME_IN_ERROR_END
PJMEDIA_AUDIODEV_ERRNO_FROM_WMME_IN(err)

Convert WaveIn operation error codes to PJLIB error space.

PJMEDIA_AUDIODEV_WMME_OUT_ERROR_START

Mapping from Windows multimedia WaveOut error codes.

PJMEDIA_AUDIODEV_WMME_OUT_ERROR_END
PJMEDIA_AUDIODEV_ERRNO_FROM_WMME_OUT(err)

Convert WaveOut operation error codes to PJLIB error space.

PJMEDIA_AUDIODEV_COREAUDIO_ERRNO_START

Mapping from CoreAudio error codes to pjmedia error space.

PJMEDIA_AUDIODEV_COREAUDIO_ERRNO_END
PJMEDIA_AUDIODEV_ERRNO_FROM_COREAUDIO(err)

Convert CoreAudio error code to PJLIB error code. CoreAudio error code range: 0 >= err >= -10000

PJMEDIA_EAUD_ERR

General/unknown error.

PJMEDIA_EAUD_SYSERR

Unknown error from audio driver

PJMEDIA_EAUD_INIT

Audio subsystem not initialized

PJMEDIA_EAUD_INVDEV

Invalid audio device

PJMEDIA_EAUD_NODEV

Found no devices

PJMEDIA_EAUD_NODEFDEV

Unable to find default device

PJMEDIA_EAUD_NOTREADY

Device not ready

PJMEDIA_EAUD_INVCAP

The audio capability is invalid or not supported

PJMEDIA_EAUD_INVOP

The operation is invalid or not supported

PJMEDIA_EAUD_BADFORMAT

Bad or invalid audio device format

PJMEDIA_EAUD_SAMPFORMAT

Invalid audio device sample format

PJMEDIA_EAUD_BADLATENCY

Bad latency setting

Functions

pj_str_t pjmedia_audiodev_strerror(pj_status_t status, char *buffer, pj_size_t bufsize)

Get error message for the specified error code. Note that this function is only able to decode PJMEDIA Audiodev specific error code. Application should use pj_strerror(), which should be able to decode all error codes belonging to all subsystems (e.g. pjlib, pjmedia, pjsip, etc).

Parameters
  • status – The error code.

  • buffer – The buffer where to put the error message.

  • bufsize – Size of the buffer.

Returns

The error message as NULL terminated string, wrapped with pj_str_t.