summaryrefslogtreecommitdiff
path: root/pjmedia/include/pjmedia-audiodev
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2011-09-09 09:51:10 +0000
committerNanang Izzuddin <nanang@teluu.com>2011-09-09 09:51:10 +0000
commit22eb7f24a0f86a681d2735e9f5705fe7c99bf752 (patch)
tree700f3b339b7e5046e72ab16cec5db1bf465f1093 /pjmedia/include/pjmedia-audiodev
parent4803be66dcddff1800717dda2dcc386021eb8570 (diff)
More Symbian MDA fixes (re #1365):
- Added config setting to control sync/async start. Due to problem with async start: any volume query performed immediately after starting the device will always return zero. - Fixed get_default_param() to set the flags to zero (was copied from caps, i.e: input/output volume flags without setting the value). - Fixed stream_get_param() to also check the input and output volume level. git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3748 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include/pjmedia-audiodev')
-rw-r--r--pjmedia/include/pjmedia-audiodev/config.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/pjmedia/include/pjmedia-audiodev/config.h b/pjmedia/include/pjmedia-audiodev/config.h
index f450a9ac..c1dbb4ce 100644
--- a/pjmedia/include/pjmedia-audiodev/config.h
+++ b/pjmedia/include/pjmedia-audiodev/config.h
@@ -145,6 +145,21 @@ PJ_BEGIN_DECL
/**
+ * This setting controls whether the Symbian audio with built-in multimedia
+ * framework backend should be started synchronously. Note that synchronous
+ * start will block the application/UI, e.g: about 40ms for each direction
+ * on N95. While asynchronous start may cause invalid value (always zero)
+ * returned in input/output volume query, if the query is performed when
+ * the internal start procedure is not completely finished.
+ *
+ * Default: 1 (yes)
+ */
+#ifndef PJMEDIA_AUDIO_DEV_MDA_USE_SYNC_START
+# define PJMEDIA_AUDIO_DEV_MDA_USE_SYNC_START 1
+#endif
+
+
+/**
* This setting controls whether the Audio Device API should support
* device implementation that is based on the old sound device API
* (sound.h).