Changeset 3664 for pjproject/trunk/pjsip-apps/src/samples/stereotest.c
- Timestamp:
- Jul 19, 2011 3:42:28 AM (13 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk
- Property svn:mergeinfo changed
-
pjproject/trunk/pjsip-apps/src/samples/stereotest.c
r3553 r3664 190 190 pool, /* pool */ 191 191 dev_id, /* device id. */ 192 file_port->info.clock_rate,/* clock rate. */192 PJMEDIA_PIA_SRATE(&file_port->info),/* clock rate. */ 193 193 snd_ch_cnt, /* # of channels. */ 194 194 snd_ch_cnt * PTIME * /* samples per frame. */ 195 file_port->info.clock_rate/ 1000,196 file_port->info.bits_per_sample,/* bits per sample. */195 PJMEDIA_PIA_SRATE(&file_port->info) / 1000, 196 PJMEDIA_PIA_BITS(&file_port->info),/* bits per sample. */ 197 197 0, /* options */ 198 198 &snd_port /* returned port */ … … 203 203 } 204 204 205 if (snd_ch_cnt != file_port->info.channel_count) {205 if (snd_ch_cnt != PJMEDIA_PIA_CCNT(&file_port->info)) { 206 206 status = pjmedia_stereo_port_create( pool, 207 207 file_port, … … 290 290 291 291 printf("Mode = %s\n", (mode == MODE_PLAY? "playing" : "recording") ); 292 printf("File port channel count = %d\n", file_port->info.channel_count);292 printf("File port channel count = %d\n", PJMEDIA_PIA_CCNT(&file_port->info)); 293 293 printf("Sound port channel count = %d\n", 294 pjmedia_snd_port_get_port(snd_port)->info.channel_count);294 PJMEDIA_PIA_CCNT(&pjmedia_snd_port_get_port(snd_port)->info)); 295 295 puts(""); 296 296 puts("Press <ENTER> to stop and quit");
Note: See TracChangeset
for help on using the changeset viewer.