WARNING: The online documentation has moved to https://docs.pjsip.org.

Visit the new documentation at https://docs.pjsip.org:

BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJMEDIA Reference

Audio devive library specific error codes. More...

Macros

#define PJMEDIA_AUDIODEV_ERRNO_START    (PJ_ERRNO_START_USER + PJ_ERRNO_SPACE_SIZE*5)
 
#define PJMEDIA_AUDIODEV_ERRNO_END    (PJMEDIA_AUDIODEV_ERRNO_START + PJ_ERRNO_SPACE_SIZE - 1)
 
#define PJMEDIA_AUDIODEV_PORTAUDIO_ERRNO_START    (PJMEDIA_AUDIODEV_ERRNO_END-10000)
 
#define PJMEDIA_AUDIODEV_PORTAUDIO_ERRNO_END    (PJMEDIA_AUDIODEV_PORTAUDIO_ERRNO_START + 10000 -1)
 
#define PJMEDIA_AUDIODEV_ERRNO_FROM_PORTAUDIO(err)    ((int)PJMEDIA_AUDIODEV_PORTAUDIO_ERRNO_START-err)
 
#define PJMEDIA_AUDIODEV_WMME_IN_ERROR_START    (PJMEDIA_AUDIODEV_ERRNO_START + 30000)
 
#define PJMEDIA_AUDIODEV_WMME_IN_ERROR_END    (PJMEDIA_AUDIODEV_WMME_IN_ERROR_START + 1000 - 1)
 
#define PJMEDIA_AUDIODEV_ERRNO_FROM_WMME_IN(err)    ((int)PJMEDIA_AUDIODEV_WMME_IN_ERROR_START+err)
 
#define PJMEDIA_AUDIODEV_WMME_OUT_ERROR_START    (PJMEDIA_AUDIODEV_WMME_IN_ERROR_END + 1000)
 
#define PJMEDIA_AUDIODEV_WMME_OUT_ERROR_END    (PJMEDIA_AUDIODEV_WMME_OUT_ERROR_START + 1000)
 
#define PJMEDIA_AUDIODEV_ERRNO_FROM_WMME_OUT(err)    ((int)PJMEDIA_AUDIODEV_WMME_OUT_ERROR_START+err)
 
#define PJMEDIA_AUDIODEV_COREAUDIO_ERRNO_START    (PJMEDIA_AUDIODEV_ERRNO_START+20000)
 
#define PJMEDIA_AUDIODEV_COREAUDIO_ERRNO_END    (PJMEDIA_AUDIODEV_COREAUDIO_ERRNO_START + 20000 -1)
 
#define PJMEDIA_AUDIODEV_ERRNO_FROM_COREAUDIO(err)    ((int)PJMEDIA_AUDIODEV_COREAUDIO_ERRNO_START-err)
 
#define PJMEDIA_AUDIODEV_BDIMAD_ERROR_START    (PJMEDIA_AUDIODEV_ERRNO_START + 40000)
 
#define PJMEDIA_AUDIODEV_BDIMAD_ERROR_END    (PJMEDIA_AUDIODEV_BDIMAD_ERROR_START + 2000 - 1)
 
#define PJMEDIA_AUDIODEV_ERRNO_FROM_BDIMAD(err)    ((int)PJMEDIA_AUDIODEV_BDIMAD_ERROR_START+err)
 
#define PJMEDIA_EAUD_ERR
 
#define PJMEDIA_EAUD_SYSERR
 
#define PJMEDIA_EAUD_INIT
 
#define PJMEDIA_EAUD_INVDEV
 
#define PJMEDIA_EAUD_NODEV
 
#define PJMEDIA_EAUD_NODEFDEV
 
#define PJMEDIA_EAUD_NOTREADY
 
#define PJMEDIA_EAUD_INVCAP
 
#define PJMEDIA_EAUD_INVOP
 
#define PJMEDIA_EAUD_BADFORMAT
 
#define PJMEDIA_EAUD_SAMPFORMAT
 
#define PJMEDIA_EAUD_BADLATENCY
 
#define PJMEDIA_EAUD_WASAPI_ERROR
 
#define PJMEDIA_VIDEODEV_ERRNO_START    (PJ_ERRNO_START_USER + PJ_ERRNO_SPACE_SIZE*7)
 
#define PJMEDIA_VIDEODEV_ERRNO_END    (PJMEDIA_VIDEODEV_ERRNO_START + PJ_ERRNO_SPACE_SIZE - 1)
 
#define PJMEDIA_EVID_ERR
 
#define PJMEDIA_EVID_SYSERR
 
#define PJMEDIA_EVID_INIT
 
#define PJMEDIA_EVID_INVDEV
 
#define PJMEDIA_EVID_NODEV
 
#define PJMEDIA_EVID_NODEFDEV
 
#define PJMEDIA_EVID_NOTREADY
 
#define PJMEDIA_EVID_INVCAP
 
#define PJMEDIA_EVID_INVOP
 
#define PJMEDIA_EVID_BADFORMAT
 
#define PJMEDIA_EVID_SAMPFORMAT
 
#define PJMEDIA_EVID_BADLATENCY
 
#define PJMEDIA_EVID_BADSIZE
 

Functions

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

Detailed Description

Video device library specific error codes.

Macro Definition Documentation

◆ PJMEDIA_AUDIODEV_ERRNO_START

#define PJMEDIA_AUDIODEV_ERRNO_START    (PJ_ERRNO_START_USER + PJ_ERRNO_SPACE_SIZE*5)

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

◆ PJMEDIA_AUDIODEV_PORTAUDIO_ERRNO_START

#define PJMEDIA_AUDIODEV_PORTAUDIO_ERRNO_START    (PJMEDIA_AUDIODEV_ERRNO_END-10000)

Mapping from PortAudio error codes to pjmedia error space.

◆ PJMEDIA_AUDIODEV_ERRNO_FROM_PORTAUDIO

#define PJMEDIA_AUDIODEV_ERRNO_FROM_PORTAUDIO (   err)     ((int)PJMEDIA_AUDIODEV_PORTAUDIO_ERRNO_START-err)

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

◆ PJMEDIA_AUDIODEV_WMME_IN_ERROR_START

#define PJMEDIA_AUDIODEV_WMME_IN_ERROR_START    (PJMEDIA_AUDIODEV_ERRNO_START + 30000)

Mapping from Windows multimedia WaveIn error codes.

◆ PJMEDIA_AUDIODEV_ERRNO_FROM_WMME_IN

#define PJMEDIA_AUDIODEV_ERRNO_FROM_WMME_IN (   err)     ((int)PJMEDIA_AUDIODEV_WMME_IN_ERROR_START+err)

Convert WaveIn operation error codes to PJLIB error space.

◆ PJMEDIA_AUDIODEV_WMME_OUT_ERROR_START

#define PJMEDIA_AUDIODEV_WMME_OUT_ERROR_START    (PJMEDIA_AUDIODEV_WMME_IN_ERROR_END + 1000)

Mapping from Windows multimedia WaveOut error codes.

◆ PJMEDIA_AUDIODEV_ERRNO_FROM_WMME_OUT

#define PJMEDIA_AUDIODEV_ERRNO_FROM_WMME_OUT (   err)     ((int)PJMEDIA_AUDIODEV_WMME_OUT_ERROR_START+err)

Convert WaveOut operation error codes to PJLIB error space.

◆ PJMEDIA_AUDIODEV_COREAUDIO_ERRNO_START

#define PJMEDIA_AUDIODEV_COREAUDIO_ERRNO_START    (PJMEDIA_AUDIODEV_ERRNO_START+20000)

Mapping from CoreAudio error codes to pjmedia error space.

◆ PJMEDIA_AUDIODEV_ERRNO_FROM_COREAUDIO

#define PJMEDIA_AUDIODEV_ERRNO_FROM_COREAUDIO (   err)     ((int)PJMEDIA_AUDIODEV_COREAUDIO_ERRNO_START-err)

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

◆ PJMEDIA_AUDIODEV_BDIMAD_ERROR_START

#define PJMEDIA_AUDIODEV_BDIMAD_ERROR_START    (PJMEDIA_AUDIODEV_ERRNO_START + 40000)

Mapping from BDIMAD error codes to pjmedia error space.

◆ PJMEDIA_AUDIODEV_ERRNO_FROM_BDIMAD

#define PJMEDIA_AUDIODEV_ERRNO_FROM_BDIMAD (   err)     ((int)PJMEDIA_AUDIODEV_BDIMAD_ERROR_START+err)

Convert BDIMAD error codes to PJLIB error space.

◆ PJMEDIA_EAUD_ERR

#define PJMEDIA_EAUD_ERR

General/unknown error.

◆ PJMEDIA_EAUD_SYSERR

#define PJMEDIA_EAUD_SYSERR

Unknown error from audio driver

◆ PJMEDIA_EAUD_INIT

#define PJMEDIA_EAUD_INIT

Audio subsystem not initialized

◆ PJMEDIA_EAUD_INVDEV

#define PJMEDIA_EAUD_INVDEV

Invalid audio device

◆ PJMEDIA_EAUD_NODEV

#define PJMEDIA_EAUD_NODEV

Found no devices

◆ PJMEDIA_EAUD_NODEFDEV

#define PJMEDIA_EAUD_NODEFDEV

Unable to find default device

◆ PJMEDIA_EAUD_NOTREADY

#define PJMEDIA_EAUD_NOTREADY

Device not ready

◆ PJMEDIA_EAUD_INVCAP

#define PJMEDIA_EAUD_INVCAP

The audio capability is invalid or not supported

◆ PJMEDIA_EAUD_INVOP

#define PJMEDIA_EAUD_INVOP

The operation is invalid or not supported

◆ PJMEDIA_EAUD_BADFORMAT

#define PJMEDIA_EAUD_BADFORMAT

Bad or invalid audio device format

◆ PJMEDIA_EAUD_SAMPFORMAT

#define PJMEDIA_EAUD_SAMPFORMAT

Invalid audio device sample format

◆ PJMEDIA_EAUD_BADLATENCY

#define PJMEDIA_EAUD_BADLATENCY

Bad latency setting

◆ PJMEDIA_EAUD_WASAPI_ERROR

#define PJMEDIA_EAUD_WASAPI_ERROR

General WASAPI error

◆ PJMEDIA_VIDEODEV_ERRNO_START

#define PJMEDIA_VIDEODEV_ERRNO_START    (PJ_ERRNO_START_USER + PJ_ERRNO_SPACE_SIZE*7)

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

◆ PJMEDIA_EVID_ERR

#define PJMEDIA_EVID_ERR

General/unknown error.

◆ PJMEDIA_EVID_SYSERR

#define PJMEDIA_EVID_SYSERR

Unknown error from video driver

◆ PJMEDIA_EVID_INIT

#define PJMEDIA_EVID_INIT

Video subsystem not initialized

◆ PJMEDIA_EVID_INVDEV

#define PJMEDIA_EVID_INVDEV

Invalid video device

◆ PJMEDIA_EVID_NODEV

#define PJMEDIA_EVID_NODEV

Found no devices

◆ PJMEDIA_EVID_NODEFDEV

#define PJMEDIA_EVID_NODEFDEV

Unable to find default device

◆ PJMEDIA_EVID_NOTREADY

#define PJMEDIA_EVID_NOTREADY

Device not ready

◆ PJMEDIA_EVID_INVCAP

#define PJMEDIA_EVID_INVCAP

The video capability is invalid or not supported

◆ PJMEDIA_EVID_INVOP

#define PJMEDIA_EVID_INVOP

The operation is invalid or not supported

◆ PJMEDIA_EVID_BADFORMAT

#define PJMEDIA_EVID_BADFORMAT

Bad or invalid video device format

◆ PJMEDIA_EVID_SAMPFORMAT

#define PJMEDIA_EVID_SAMPFORMAT

Invalid video device sample format

◆ PJMEDIA_EVID_BADLATENCY

#define PJMEDIA_EVID_BADLATENCY

Bad latency setting

◆ PJMEDIA_EVID_BADSIZE

#define PJMEDIA_EVID_BADSIZE

Bad/unsupported video size

Function Documentation

◆ pjmedia_audiodev_strerror()

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
statusThe error code.
bufferThe buffer where to put the error message.
bufsizeSize of the buffer.
Returns
The error message as NULL terminated string, wrapped with pj_str_t.

References PJ_END_DECL.

◆ pjmedia_videodev_strerror()

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
statusThe error code.
bufferThe buffer where to put the error message.
bufsizeSize of the buffer.
Returns
The error message as NULL terminated string, wrapped with pj_str_t.

References PJ_END_DECL.

 


PJMEDIA small footprint Open Source media stack
Copyright (C) 2006-2008 Teluu Inc.