summaryrefslogtreecommitdiff
path: root/pjmedia/include/pjmedia-audiodev/config.h
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2015-11-19 04:03:00 +0000
committerLiong Sauw Ming <ming@teluu.com>2015-11-19 04:03:00 +0000
commit0eac1761fb3d3fb17799f1e8363f25b495094d07 (patch)
tree21a8be90fc7618a4d1f298e3880592637eff3d71 /pjmedia/include/pjmedia-audiodev/config.h
parent2b2aaa7bba77b4615e58a3b2b25dab404064e366 (diff)
Re #1882 (misc): Configurable audio device name length
Thanks to Wolfgang Wallhäuser for the original patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5201 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include/pjmedia-audiodev/config.h')
-rw-r--r--pjmedia/include/pjmedia-audiodev/config.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/pjmedia/include/pjmedia-audiodev/config.h b/pjmedia/include/pjmedia-audiodev/config.h
index b05f822d..b55aed44 100644
--- a/pjmedia/include/pjmedia-audiodev/config.h
+++ b/pjmedia/include/pjmedia-audiodev/config.h
@@ -43,6 +43,20 @@ PJ_BEGIN_DECL
*/
/**
+ * This setting controls the buffer length of audio device name.
+ *
+ * Default: 128 for Windows platforms, 64 for others
+ */
+#ifndef PJMEDIA_AUD_DEV_INFO_NAME_LEN
+# if (defined(PJ_WIN32) && PJ_WIN32!=0) || \
+ (defined(PJ_WIN64) && PJ_WIN64!=0)
+# define PJMEDIA_AUD_DEV_INFO_NAME_LEN 128
+# else
+# define PJMEDIA_AUD_DEV_INFO_NAME_LEN 64
+# endif
+#endif
+
+/**
* This setting controls whether PortAudio support should be included.
*
* By default it is enabled except on Windows platforms (including