summaryrefslogtreecommitdiff
path: root/pjmedia/include
diff options
context:
space:
mode:
authorRiza Sulistyo <riza@teluu.com>2013-03-08 08:02:48 +0000
committerRiza Sulistyo <riza@teluu.com>2013-03-08 08:02:48 +0000
commitb24558f7cbc9fabf6f2c5824c9ae9ef8b0b73f3e (patch)
tree94278ee3bd32303e82a912b8917d5f5b5d7a12c1 /pjmedia/include
parent2585e16cf26de19fc010c37335b13525473caf7d (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')
-rw-r--r--pjmedia/include/pjmedia-audiodev/config.h8
-rw-r--r--pjmedia/include/pjmedia-audiodev/errno.h13
2 files changed, 21 insertions, 0 deletions
diff --git a/pjmedia/include/pjmedia-audiodev/config.h b/pjmedia/include/pjmedia-audiodev/config.h
index 899345bd..6ba4605a 100644
--- a/pjmedia/include/pjmedia-audiodev/config.h
+++ b/pjmedia/include/pjmedia-audiodev/config.h
@@ -96,6 +96,14 @@ PJ_BEGIN_DECL
# define PJMEDIA_AUDIO_DEV_HAS_WMME 1
#endif
+
+/**
+ * This setting controls whether BDIMAD support should be included.
+ */
+#ifndef PJMEDIA_AUDIO_DEV_HAS_BDIMAD
+# define PJMEDIA_AUDIO_DEV_HAS_BDIMAD 0
+#endif
+
/**
* This setting controls whether Symbian APS support should be included.
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
***********************************************************/