Ignore:
Timestamp:
Mar 8, 2006 12:37:22 PM (18 years ago)
Author:
bennylp
Message:

Added options to disable microphone device, usefull for streaming server (some systems only have sound player)

File:
1 edited

Legend:

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

    r277 r312  
    4141typedef struct pjmedia_conf_port_info 
    4242{ 
    43     unsigned            slot; 
    44     pj_str_t            name; 
    45     pjmedia_port_op     tx_setting; 
    46     pjmedia_port_op     rx_setting; 
    47     pj_bool_t          *listener; 
    48     unsigned            clock_rate; 
    49     unsigned            samples_per_frame; 
     43    unsigned            slot;               /**< Slot number.               */ 
     44    pj_str_t            name;               /**< Port name.                 */ 
     45    pjmedia_port_op     tx_setting;         /**< Transmit settings.         */ 
     46    pjmedia_port_op     rx_setting;         /**< Receive settings.          */ 
     47    pj_bool_t          *listener;           /**< Array of listeners.        */ 
     48    unsigned            clock_rate;         /**< Clock rate of the port.    */ 
     49    unsigned            samples_per_frame;  /**< Samples per frame          */ 
    5050} pjmedia_conf_port_info; 
    5151 
    5252 
    5353/** 
    54  * Create conference bridge. 
     54 * Conference port options. The values here can be combined in bitmask to 
     55 * be specified when the conference bridge is created. 
     56 */ 
     57enum pjmedia_conf_option 
     58{ 
     59    PJMEDIA_CONF_NO_MIC  = 1,   /**< Disable audio streams from the 
     60                                     microphone device.                     */ 
     61}; 
     62 
     63 
     64/** 
     65 * Create conference bridge. This normally will also create instances of 
     66 * sound device to be attached to the port zero of the bridge. 
     67 * 
     68 * @param pool              Pool to use to allocate the bridge and  
     69 *                          additional buffers for the sound device. 
     70 * @param max_slots         Maximum number of slots/ports to be created in 
     71 *                          the bridge. Note that the bridge internally uses 
     72 *                          one port for the sound device, so the actual  
     73 *                          maximum number of ports will be less one than 
     74 *                          this value. 
     75 * @param sampling_rate     Set the sampling rate of the bridge. This value 
     76 *                          is also used to set the sampling rate of the 
     77 *                          sound device. 
     78 * @param samples_per_frame Set the number of samples per frame. This value 
     79 *                          is also used to set the sound device. 
     80 * @param bits_per_sample   Set the number of bits per sample. This value 
     81 *                          is also used to set the sound device. Currently 
     82 *                          only 16bit per sample is supported. 
     83 * @param options           Bitmask options to be set for the bridge. The 
     84 *                          options are constructed from #pjmedia_conf_option 
     85 *                          enumeration. 
     86 * @param p_conf            Pointer to receive the conference bridge instance. 
     87 * 
     88 * @return                  PJ_SUCCESS if conference bridge can be created. 
    5589 */ 
    5690PJ_DECL(pj_status_t) pjmedia_conf_create( pj_pool_t *pool, 
     
    5993                                          unsigned samples_per_frame, 
    6094                                          unsigned bits_per_sample, 
     95                                          unsigned options, 
    6196                                          pjmedia_conf **p_conf ); 
    6297 
     
    6499/** 
    65100 * Destroy conference bridge. 
     101 * 
     102 * @param conf              The conference bridge. 
     103 * 
     104 * @return                  PJ_SUCCESS on success. 
    66105 */ 
    67106PJ_DECL(pj_status_t) pjmedia_conf_destroy( pjmedia_conf *conf ); 
Note: See TracChangeset for help on using the changeset viewer.