Ignore:
Timestamp:
May 28, 2006 2:51:21 PM (18 years ago)
Author:
bennylp
Message:

Added set_pos() to WAV player

File:
1 edited

Legend:

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

    r411 r480  
    5858 
    5959/** 
     60 * Set the play position of WAV player. 
     61 * 
     62 * @param port          The file player port. 
     63 * @param samples       Sample position (zero as start of file). 
     64 * 
     65 * @return              PJ_SUCCESS on success. 
     66 */ 
     67PJ_DECL(pj_status_t) pjmedia_wav_player_port_set_pos( pjmedia_port *port, 
     68                                                      pj_uint32_t samples ); 
     69 
     70 
     71/** 
    6072 * Create a media port to record streams to a WAV file. Note that the port 
    6173 * must be closed properly (with #pjmedia_port_destroy()) so that the WAV 
     
    6476 * @param pool          Pool to create memory buffers for this port. 
    6577 * @param filename      File name. 
    66  * @param flags         Port creation flags. 
     78 * @param clock_rate    The sampling rate. 
     79 * @param channel_count Number of channels. 
     80 * @param samples_per_frame Number of samples per frame. 
     81 * @param bits_per_sampe Number of bits per sample (eg 16). 
     82 * @param flags         Port creation flags (must be 0 at present). 
    6783 * @param buf_size      Buffer size to be allocated. If the value is zero or 
    6884 *                      negative, the port will use default buffer size (which 
     
    7389 * @return              PJ_SUCCESS on success. 
    7490 */ 
    75 PJ_DECL(pj_status_t) pjmedia_wav_writer_port_create( pj_pool_t *pool, 
    76                                                       const char *filename, 
    77                                                       unsigned sampling_rate, 
    78                                                       unsigned channel_count, 
    79                                                       unsigned samples_per_frame, 
    80                                                       unsigned bits_per_sample, 
    81                                                       unsigned flags, 
    82                                                       pj_ssize_t buff_size, 
    83                                                       void *user_data, 
    84                                                       pjmedia_port **p_port ); 
     91PJ_DECL(pj_status_t) pjmedia_wav_writer_port_create(pj_pool_t *pool, 
     92                                                    const char *filename, 
     93                                                    unsigned clock_rate, 
     94                                                    unsigned channel_count, 
     95                                                    unsigned samples_per_frame, 
     96                                                    unsigned bits_per_sample, 
     97                                                    unsigned flags, 
     98                                                    pj_ssize_t buff_size, 
     99                                                    void *user_data, 
     100                                                    pjmedia_port **p_port ); 
    85101 
    86102 
Note: See TracChangeset for help on using the changeset viewer.