|
HOME
SIP/media Features
High Performance SIP
Small Footprint SIP
Symbian Port
FAQ
Documentation
Licensing
Download
Development (Trac)
Projects using pjsip
Mailing List
Open Source Links
About: PJLIB, PJLIB-UTIL, PJSIP, and PJMEDIA are created by: Benny Prijono <bennylp pjsip.org>
|
|
Home --> Documentations --> PJMEDIA Reference
Audio devive library specific error codes.
Define Documentation
| #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.
| #define PJMEDIA_AUDIODEV_PORTAUDIO_ERRNO_START (PJMEDIA_AUDIODEV_ERRNO_END-10000) |
Mapping from PortAudio error codes to pjmedia error space.
| #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
| #define PJMEDIA_AUDIODEV_WMME_IN_ERROR_START (PJMEDIA_AUDIODEV_ERRNO_START + 30000) |
Mapping from Windows multimedia WaveIn error codes.
| #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.
| #define PJMEDIA_AUDIODEV_WMME_OUT_ERROR_START (PJMEDIA_AUDIODEV_WMME_IN_ERROR_END + 1000) |
Mapping from Windows multimedia WaveOut error codes.
| #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.
| #define PJMEDIA_AUDIODEV_COREAUDIO_ERRNO_START (PJMEDIA_AUDIODEV_ERRNO_START+20000) |
Mapping from CoreAudio error codes to pjmedia error space.
| #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
| #define PJMEDIA_EAUD_SYSERR |
Unknown error from audio driver
| #define PJMEDIA_EAUD_INIT |
Audio subsystem not initialized
| #define PJMEDIA_EAUD_INVDEV |
| #define PJMEDIA_EAUD_NODEV |
| #define PJMEDIA_EAUD_NODEFDEV |
Unable to find default device
| #define PJMEDIA_EAUD_NOTREADY |
| #define PJMEDIA_EAUD_INVCAP |
The audio capability is invalid or not supported
| #define PJMEDIA_EAUD_INVOP |
The operation is invalid or not supported
| #define PJMEDIA_EAUD_BADFORMAT |
Bad or invalid audio device format
| #define PJMEDIA_EAUD_SAMPFORMAT |
Invalid audio device sample format
| #define PJMEDIA_EAUD_BADLATENCY |
Function Documentation
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.
PJMEDIA small footprint Open Source media stack
Copyright (C) 2006-2008 Teluu Inc.
|
|