Ignore:
Timestamp:
Apr 27, 2006 10:36:40 PM (18 years ago)
Author:
bennylp
Message:

Initial support for stereo codecs, and added L16 codecs. Also better handling for case remote media is restarted

File:
1 moved

Legend:

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

    r409 r411  
    1717 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
    1818 */ 
    19 #ifndef __PJMEDIA_FILE_PORT_H__ 
    20 #define __PJMEDIA_FILE_PORT_H__ 
     19#ifndef __PJMEDIA_WAV_PORT_H__ 
     20#define __PJMEDIA_WAV_PORT_H__ 
    2121 
    2222/** 
    23  * @file file_port.h 
    24  * @brief File player and recorder. 
     23 * @file wav_port.h 
     24 * @brief WAV file player and writer. 
    2525 */ 
    2626#include <pjmedia/port.h> 
     
    3636 * @param pool          Pool to create memory buffers for this port. 
    3737 * @param filename      File name to open. 
     38 * @param ptime         The duration (in miliseconds) of each frame read 
     39 *                      from this port. If the value is zero, the default 
     40 *                      duration (20ms) will be used. 
    3841 * @param flags         Port creation flags. 
    3942 * @param buf_size      Buffer size to be allocated. If the value is zero or 
     
    4548 * @return              PJ_SUCCESS on success. 
    4649 */ 
    47 PJ_DECL(pj_status_t) pjmedia_file_player_port_create( pj_pool_t *pool, 
    48                                                       const char *filename, 
    49                                                       unsigned flags, 
    50                                                       pj_ssize_t buff_size, 
    51                                                       void *user_data, 
    52                                                       pjmedia_port **p_port ); 
    53  
     50PJ_DECL(pj_status_t) pjmedia_wav_player_port_create( pj_pool_t *pool, 
     51                                                     const char *filename, 
     52                                                     unsigned ptime, 
     53                                                     unsigned flags, 
     54                                                     pj_ssize_t buff_size, 
     55                                                     void *user_data, 
     56                                                     pjmedia_port **p_port ); 
    5457 
    5558 
     
    7073 * @return              PJ_SUCCESS on success. 
    7174 */ 
    72 PJ_DECL(pj_status_t) pjmedia_file_writer_port_create( pj_pool_t *pool, 
     75PJ_DECL(pj_status_t) pjmedia_wav_writer_port_create( pj_pool_t *pool, 
    7376                                                      const char *filename, 
    7477                                                      unsigned sampling_rate, 
     
    8790 
    8891 
    89 #endif  /* __PJMEDIA_FILE_PORT_H__ */ 
     92#endif  /* __PJMEDIA_WAV_PORT_H__ */ 
Note: See TracChangeset for help on using the changeset viewer.