Ignore:
Timestamp:
Apr 27, 2006 10:37:08 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 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/playfile.c

    r407 r412  
    7777 
    7878 
     79    PJ_UNUSED_ARG(argc); 
     80 
     81 
    7982    /* Must init PJLIB first: */ 
    8083    status = pj_init(); 
     
    100103 
    101104    /* Create file media port from the WAV file */ 
    102     status = pjmedia_file_player_port_create( pool,     /* memory pool      */ 
     105    status = pjmedia_wav_player_port_create( pool,     /* memory pool      */ 
    103106                                              argv[1],  /* file to play     */ 
     107                                              20,       /* ptime.           */ 
    104108                                              0,        /* flags            */ 
    105109                                              0,        /* default buffer   */ 
     
    116120                 pool,                              /* pool                 */ 
    117121                 -1,                                /* use default dev.     */ 
    118                  file_port->info.sample_rate,       /* clock rate.          */ 
     122                 file_port->info.clock_rate,        /* clock rate.          */ 
    119123                 file_port->info.channel_count,     /* # of channels.       */ 
    120124                 file_port->info.samples_per_frame, /* samples per frame.   */ 
Note: See TracChangeset for help on using the changeset viewer.