diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2013-03-20 06:56:19 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2013-03-20 06:56:19 +0000 |
commit | 4d108dde272ab26fc4cc441137ae1dd7c20c8465 (patch) | |
tree | b47e054f407424e66d34bbb20ffe9f5a3c8ba4a8 /pjmedia/include | |
parent | 7a36d0beac6c5e1253076a2b42d778fd389695e6 (diff) |
Misc (re #1630): Added compile-time setting to configure audio switchboard buffer size.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4443 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include')
-rw-r--r-- | pjmedia/include/pjmedia/config.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pjmedia/include/pjmedia/config.h b/pjmedia/include/pjmedia/config.h index 0005fcbc..b3becbc7 100644 --- a/pjmedia/include/pjmedia/config.h +++ b/pjmedia/include/pjmedia/config.h @@ -60,6 +60,21 @@ # define PJMEDIA_CONF_USE_SWITCH_BOARD 0 #endif +/** + * Specify buffer size for audio switch board, in bytes. This buffer will + * be used for transmitting/receiving audio frame data (and some overheads, + * i.e: pjmedia_frame structure) among conference ports in the audio + * switch board. For example, if a port uses PCM format @44100Hz mono + * and frame time 20ms, the PCM audio data will require 1764 bytes, + * so with overhead, a safe buffer size will be ~1900 bytes. + * + * Default: PJMEDIA_MAX_MTU + */ +#ifndef PJMEDIA_CONF_SWITCH_BOARD_BUF_SIZE +# define PJMEDIA_CONF_SWITCH_BOARD_BUF_SIZE PJMEDIA_MAX_MTU +#endif + + /* * Types of sound stream backends. */ |