Ignore:
Timestamp:
Mar 20, 2013 6:56:19 AM (6 years ago)
Author:
nanang
Message:

Misc (re #1630): Added compile-time setting to configure audio switchboard buffer size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/config.h

    r4240 r4443  
    6060#   define PJMEDIA_CONF_USE_SWITCH_BOARD    0 
    6161#endif 
     62 
     63/** 
     64 * Specify buffer size for audio switch board, in bytes. This buffer will 
     65 * be used for transmitting/receiving audio frame data (and some overheads, 
     66 * i.e: pjmedia_frame structure) among conference ports in the audio 
     67 * switch board. For example, if a port uses PCM format @44100Hz mono 
     68 * and frame time 20ms, the PCM audio data will require 1764 bytes, 
     69 * so with overhead, a safe buffer size will be ~1900 bytes. 
     70 * 
     71 * Default: PJMEDIA_MAX_MTU 
     72 */ 
     73#ifndef PJMEDIA_CONF_SWITCH_BOARD_BUF_SIZE 
     74#   define PJMEDIA_CONF_SWITCH_BOARD_BUF_SIZE    PJMEDIA_MAX_MTU 
     75#endif 
     76 
    6277 
    6378/* 
Note: See TracChangeset for help on using the changeset viewer.