Ignore:
Timestamp:
Jul 27, 2006 10:03:51 PM (18 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/port.h

    r622 r631  
    357357 
    358358/** 
     359 * This is an auxiliary function to initialize port info for 
     360 * ports which deal with PCM audio. 
     361 * 
     362 * @param info              The port info to be initialized. 
     363 * @param name              Port name. 
     364 * @param signature         Port signature. 
     365 * @param channel_count     Number of channels. 
     366 * @param bits_per_sample   Bits per sample. 
     367 * @param samples_per_frame Number of samples per frame. 
     368 * 
     369 * @return                  PJ_SUCCESS on success. 
     370 */ 
     371PJ_DECL(pj_status_t) pjmedia_port_info_init( pjmedia_port_info *info, 
     372                                             const pj_str_t *name, 
     373                                             unsigned signature, 
     374                                             unsigned clock_rate, 
     375                                             unsigned channel_count, 
     376                                             unsigned bits_per_sample, 
     377                                             unsigned samples_per_frame); 
     378 
     379 
     380/** 
    359381 * Get a frame from the port (and subsequent downstream ports). 
     382 * 
     383 * @param port      The media port. 
     384 * @param frame     Frame to store samples. 
     385 * 
     386 * @return          PJ_SUCCESS on success, or the appropriate error code. 
    360387 */ 
    361388PJ_DECL(pj_status_t) pjmedia_port_get_frame( pjmedia_port *port, 
     
    364391/** 
    365392 * Put a frame to the port (and subsequent downstream ports). 
     393 * 
     394 * @param port      The media port. 
     395 * @param frame     Frame to the put to the port. 
     396 * 
     397 * @return          PJ_SUCCESS on success, or the appropriate error code. 
    366398 */ 
    367399PJ_DECL(pj_status_t) pjmedia_port_put_frame( pjmedia_port *port, 
     
    371403/** 
    372404 * Destroy port (and subsequent downstream ports) 
     405 * 
     406 * @param port      The media port. 
     407 * 
     408 * @return          PJ_SUCCESS on success, or the appropriate error code. 
    373409 */ 
    374410PJ_DECL(pj_status_t) pjmedia_port_destroy( pjmedia_port *port ); 
Note: See TracChangeset for help on using the changeset viewer.