Ignore:
Timestamp:
Jul 19, 2011 3:42:28 AM (13 years ago)
Author:
nanang
Message:

Re #1326: Initial code integration from branch 2.0-dev to trunk as "2.0-pre-alpha-svn".

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk

  • pjproject/trunk/pjsip-apps/src/samples/stereotest.c

    r3553 r3664  
    190190                     pool,                              /* pool               */ 
    191191                     dev_id,                            /* device id.         */ 
    192                      file_port->info.clock_rate,        /* clock rate.        */ 
     192                     PJMEDIA_PIA_SRATE(&file_port->info),/* clock rate.       */ 
    193193                     snd_ch_cnt,                        /* # of channels.     */ 
    194194                     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.   */ 
    197197                     0,                                 /* options            */ 
    198198                     &snd_port                          /* returned port      */ 
     
    203203        } 
    204204 
    205         if (snd_ch_cnt != file_port->info.channel_count) { 
     205        if (snd_ch_cnt != PJMEDIA_PIA_CCNT(&file_port->info)) { 
    206206            status = pjmedia_stereo_port_create( pool, 
    207207                                                 file_port, 
     
    290290 
    291291    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)); 
    293293    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)); 
    295295    puts(""); 
    296296    puts("Press <ENTER> to stop and quit"); 
Note: See TracChangeset for help on using the changeset viewer.