diff options
author | Riza Sulistyo <riza@teluu.com> | 2013-03-08 08:02:48 +0000 |
---|---|---|
committer | Riza Sulistyo <riza@teluu.com> | 2013-03-08 08:02:48 +0000 |
commit | b24558f7cbc9fabf6f2c5824c9ae9ef8b0b73f3e (patch) | |
tree | 94278ee3bd32303e82a912b8917d5f5b5d7a12c1 /pjmedia/include/pjmedia-audiodev/errno.h | |
parent | 2585e16cf26de19fc010c37335b13525473caf7d (diff) |
Re #1636: add initial support for bdIMAD
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4432 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include/pjmedia-audiodev/errno.h')
-rw-r--r-- | pjmedia/include/pjmedia-audiodev/errno.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pjmedia/include/pjmedia-audiodev/errno.h b/pjmedia/include/pjmedia-audiodev/errno.h index 69bdc7a0..19d1c821 100644 --- a/pjmedia/include/pjmedia-audiodev/errno.h +++ b/pjmedia/include/pjmedia-audiodev/errno.h @@ -104,6 +104,19 @@ PJ_BEGIN_DECL #define PJMEDIA_AUDIODEV_ERRNO_FROM_COREAUDIO(err) \ ((int)PJMEDIA_AUDIODEV_COREAUDIO_ERRNO_START-err) +/** + * Mapping from BDIMAD error codes to pjmedia error space. + */ +#define PJMEDIA_AUDIODEV_BDIMAD_ERROR_START \ + (PJMEDIA_AUDIODEV_ERRNO_START + 40000) +#define PJMEDIA_AUDIODEV_BDIMAD_ERROR_END \ + (PJMEDIA_AUDIODEV_BDIMAD_ERROR_START + 2000 - 1) +/** + * Convert BDIMAD error codes to PJLIB error space. + */ +#define PJMEDIA_AUDIODEV_ERRNO_FROM_BDIMAD(err) \ + ((int)PJMEDIA_AUDIODEV_BDIMAD_ERROR_START+err) + /************************************************************ * Audio Device API error codes ***********************************************************/ |