Changeset 412 for pjproject/trunk/pjsip-apps/src/samples/resampleplay.c
- Timestamp:
- Apr 27, 2006 10:37:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/resampleplay.c
r361 r412 109 109 110 110 /* Create the file port. */ 111 status = pjmedia_ file_player_port_create( pool, argv[pj_optind], 0,112 111 status = pjmedia_wav_player_port_create( pool, argv[pj_optind], 0, 0, 112 0, 0, &file_port); 113 113 if (status != PJ_SUCCESS) { 114 114 app_perror(THIS_FILE, "Unable to open file", status); … … 129 129 /* Create the resample port. */ 130 130 status = pjmedia_resample_port_create( pool, 1, 1, 131 file_port->info. sample_rate,131 file_port->info.clock_rate, 132 132 sampling_rate, 133 133 channel_count, 134 134 (unsigned)( 135 135 samples_per_frame * 1.0 * 136 file_port->info. sample_rate /136 file_port->info.clock_rate / 137 137 sampling_rate), 138 138 &resample_port); … … 187 187 188 188 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); 190 190 puts(""); 191 191 puts("Press <ENTER> to stop playing and quit");
Note: See TracChangeset
for help on using the changeset viewer.