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/resampleplay.c

    r361 r412  
    109109 
    110110    /* Create the file port. */ 
    111     status = pjmedia_file_player_port_create( pool, argv[pj_optind], 0, 
    112                                               0, 0, &file_port); 
     111    status = pjmedia_wav_player_port_create( pool, argv[pj_optind], 0, 0, 
     112                                             0, 0, &file_port); 
    113113    if (status != PJ_SUCCESS) { 
    114114        app_perror(THIS_FILE, "Unable to open file", status); 
     
    129129    /* Create the resample port. */ 
    130130    status = pjmedia_resample_port_create( pool, 1, 1, 
    131                                            file_port->info.sample_rate, 
     131                                           file_port->info.clock_rate, 
    132132                                           sampling_rate, 
    133133                                           channel_count, 
    134134                                           (unsigned)( 
    135135                                           samples_per_frame * 1.0 * 
    136                                             file_port->info.sample_rate /  
     136                                            file_port->info.clock_rate /  
    137137                                            sampling_rate), 
    138138                                           &resample_port); 
     
    187187 
    188188    printf("Playing %s at sampling rate %d (original file sampling rate=%d)\n", 
    189            argv[pj_optind], sampling_rate, file_port->info.sample_rate); 
     189           argv[pj_optind], sampling_rate, file_port->info.clock_rate); 
    190190    puts(""); 
    191191    puts("Press <ENTER> to stop playing and quit"); 
Note: See TracChangeset for help on using the changeset viewer.