summaryrefslogtreecommitdiff
path: root/pjmedia/include
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-01-19 09:39:52 +0000
committerBenny Prijono <bennylp@teluu.com>2008-01-19 09:39:52 +0000
commit288b15dcff2f25d22582a8523e09d916a25d6596 (patch)
tree1fa440f21b12f6dffb005ff19230583e152c3c5b /pjmedia/include
parentd820bcd653fecf06bae3e835d805c8f560b00961 (diff)
More work on ticket #438: Workaround for frame bursts from audio devices. See the ticket for more information
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1715 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include')
-rw-r--r--pjmedia/include/pjmedia/config.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/pjmedia/include/pjmedia/config.h b/pjmedia/include/pjmedia/config.h
index c39c7172..4c7b26be 100644
--- a/pjmedia/include/pjmedia/config.h
+++ b/pjmedia/include/pjmedia/config.h
@@ -97,6 +97,9 @@
* The delay buffer also performs the best delay calculation
* for the sound device, and will try to limit the delay caused
* by uneven callback calls to this delay.
+ *
+ * When this setting is enabled, the PJMEDIA_SOUND_BUFFER_COUNT
+ * macro will specify the maximum size of the delay buffer.
*/
#ifndef PJMEDIA_SOUND_USE_DELAYBUF
# define PJMEDIA_SOUND_USE_DELAYBUF 0
@@ -104,17 +107,6 @@
/**
- * Whenever delay buffer is enabled for sound device,
- * PJMEDIA_SOUND_BUFFER_COUNT is better to be set to 1,
- * because sound callbacks will be called evenly thus
- * there's no need to have this buffer.
- */
-#if defined(PJMEDIA_SOUND_USE_DELAYBUF) && PJMEDIA_SOUND_USE_DELAYBUF!=0
-# define PJMEDIA_SOUND_BUFFER_COUNT 1
-#endif
-
-
-/**
* Specify number of sound buffers. Larger number is better for sound
* stability and to accommodate sound devices that are unable to send frames
* in timely manner, however it would probably cause more audio delay (and
@@ -124,9 +116,6 @@
* The setting here currently is used by the conference bridge, the splitter
* combiner port, and dsound.c.
*
- * Note that when PJMEDIA_SOUND_USE_DELAYBUF is enabled, it's best to
- * set PJMEDIA_SOUND_BUFFER_COUNT to 1 to reduce voice latency.
- *
* Default: 6
*/
#ifndef PJMEDIA_SOUND_BUFFER_COUNT