Group error_codes¶
- group error_codes
Audio devive library specific error codes.
Video device 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_AUDIODEV_BDIMAD_ERROR_START¶
Mapping from BDIMAD error codes to pjmedia error space.
-
PJMEDIA_AUDIODEV_BDIMAD_ERROR_END¶
-
PJMEDIA_AUDIODEV_ERRNO_FROM_BDIMAD(err)¶
Convert BDIMAD error codes to PJLIB error space.
-
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
-
PJMEDIA_EAUD_WASAPI_ERROR¶
General WASAPI error
-
PJMEDIA_VIDEODEV_ERRNO_START¶
Start of error code relative to PJ_ERRNO_START_USER. This value is 520000.
-
PJMEDIA_VIDEODEV_ERRNO_END¶
-
PJMEDIA_EVID_ERR¶
General/unknown error.
-
PJMEDIA_EVID_SYSERR¶
Unknown error from video driver
-
PJMEDIA_EVID_INIT¶
Video subsystem not initialized
-
PJMEDIA_EVID_INVDEV¶
Invalid video device
-
PJMEDIA_EVID_NODEV¶
Found no devices
-
PJMEDIA_EVID_NODEFDEV¶
Unable to find default device
-
PJMEDIA_EVID_NOTREADY¶
Device not ready
-
PJMEDIA_EVID_INVCAP¶
The video capability is invalid or not supported
-
PJMEDIA_EVID_INVOP¶
The operation is invalid or not supported
-
PJMEDIA_EVID_BADFORMAT¶
Bad or invalid video device format
-
PJMEDIA_EVID_SAMPFORMAT¶
Invalid video device sample format
-
PJMEDIA_EVID_BADLATENCY¶
Bad latency setting
-
PJMEDIA_EVID_BADSIZE¶
Bad/unsupported video size
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.
-
pj_str_t pjmedia_videodev_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 Videodev 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.
-
PJMEDIA_AUDIODEV_ERRNO_START¶