Ignore:
Timestamp:
Jul 27, 2006 10:03:51 PM (17 years ago)
Author:
bennylp
Message:
  • Added splitter/combiner port (splitcomb.c)
  • Added function to initialize pjmedia_port_info (still unused though)
File:
1 edited

Legend:

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

    r531 r631  
    2525 * @brief Media channel splitter/combiner port. 
    2626 */ 
    27 #include <pjmedia/types.h> 
     27#include <pjmedia/port.h> 
    2828 
    2929 
     
    3535 * This section describes media port to split and combine media 
    3636 * channels in the stream. 
     37 * 
     38 * A splitter/combiner splits a single stereo/multichannels audio frame into 
     39 * multiple audio frames to each channel when put_frame() is called,  
     40 * and combines mono frames from each channel into a stereo/multichannel  
     41 * frame when get_frame() is called. A common application for the splitter/ 
     42 * combiner is to split frames from stereo to mono and vise versa. 
    3743 */ 
    3844 
     
    4248/** 
    4349 * Create a media splitter/combiner with the specified parameters. 
    44  * A splitter/combiner splits a single stereo/multichannel audio frame into 
    45  * multiple mono audio frames to each channel when put_frame() is called,  
    46  * and combines mono frames from each channel into a stereo/multichannel  
    47  * frame when get_frame() is called. 
    48  * 
    4950 * When the splitter/combiner is created, it creates an instance of 
    5051 * pjmedia_port. This media port represents the stereo/multichannel side 
     
    8081 * 
    8182 * @param splitcomb         The splitter/combiner. 
    82  * @param ch_num            Audio channel number. 
    83  * @param options           Valid options are: 
    84  *                          - PJMEDIA_SPLITCOMB_AUTO_DESTROY to destroy the 
    85  *                            media port when the splitter is destroyed. 
     83 * @param ch_num            Audio channel starting number (zero based). 
     84 * @param options           Must be zero at the moment. 
    8685 * @param port              The media port. 
    8786 * 
     
    108107 *                          buffers. 
    109108 * @param splitcomb         The splitter/combiner. 
    110  * @param ch_num            Audio channel number. 
    111  * @param options           Valid options are: 
    112  *                          - PJMEDIA_SPLITCOMB_AUTO_DESTROY to destroy the 
    113  *                            media port when the splitter is destroyed. 
     109 * @param ch_num            Audio channel starting number (zero based). 
     110 * @param options           Normally is zero, but the lower 8-bit of the  
     111 *                          options can be used to specify the number of  
     112 *                          buffers in the circular buffer. If zero, then 
     113 *                          default number will be used (default: 8). 
    114114 * @param p_chport          The media port created with reverse phase for 
    115115 *                          the specified audio channel. 
Note: See TracChangeset for help on using the changeset viewer.