Ignore:
Timestamp:
Dec 10, 2010 11:04:30 AM (13 years ago)
Author:
bennylp
Message:

Migration of current video works from private repository to this repository. This closed #1176

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/level.c

    r2394 r3392  
    125125    } 
    126126 
    127     if (file_port->info.samples_per_frame > NSAMPLES) { 
     127    if (PJMEDIA_PIA_SPF(&file_port->info) > NSAMPLES) { 
    128128        app_perror(THIS_FILE, "WAV clock rate is too big", PJ_EINVAL); 
    129129        return 1; 
     
    146146 
    147147        level32 = pjmedia_calc_avg_signal(framebuf,  
    148                                           file_port->info.samples_per_frame); 
     148                                          PJMEDIA_PIA_SPF(&file_port->info)); 
    149149        level = pjmedia_linear2ulaw(level32) ^ 0xFF; 
    150150 
    151         ms = i * 1000 * file_port->info.samples_per_frame / 
    152                         file_port->info.clock_rate; 
     151        ms = i * 1000 * PJMEDIA_PIA_SPF(&file_port->info) / 
     152                PJMEDIA_PIA_SRATE(&file_port->info); 
    153153        printf("%03d.%03d\t%7d\t%7d\n",  
    154154                ms/1000, ms%1000, level, level32); 
Note: See TracChangeset for help on using the changeset viewer.