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

    r410 r412  
    7474} 
    7575 
    76 static int clock_rate; 
    77 static int play_counter; 
    78 static int rec_counter; 
    79 static int min_delay = 0xFFFF, max_delay; 
     76static unsigned clock_rate; 
     77static unsigned play_counter; 
     78static unsigned rec_counter; 
     79static unsigned min_delay = 0xFFFF, max_delay; 
    8080static char play_delays[1000]; 
    8181static pj_uint32_t last_play_timestamp, last_rec_timestamp; 
     
    8585{ 
    8686    static pj_timestamp last_cb; 
     87 
     88 
     89    PJ_UNUSED_ARG(user_data); 
     90    PJ_UNUSED_ARG(output); 
     91    PJ_UNUSED_ARG(size); 
     92 
    8793 
    8894    ++play_counter; 
     
    9399    } else if (play_counter <= PJ_ARRAY_SIZE(play_delays)) { 
    94100        pj_timestamp now; 
    95         int delay; 
     101        unsigned delay; 
    96102 
    97103        pj_get_timestamp(&now); 
     
    105111        last_cb = now; 
    106112 
    107         play_delays[play_counter-1] = delay; 
     113        play_delays[play_counter-1] = (char)delay; 
    108114    } 
    109115 
     
    114120                          const void *input, unsigned size) 
    115121{ 
     122 
     123    PJ_UNUSED_ARG(size); 
     124    PJ_UNUSED_ARG(input); 
     125    PJ_UNUSED_ARG(user_data); 
     126 
     127 
    116128    ++rec_counter; 
    117129 
     
    249261         
    250262        int dev_id; 
    251         pjmedia_dir dir; 
     263        pjmedia_dir dir = PJMEDIA_DIR_NONE; 
    252264        int nchannel; 
    253265        int bits; 
Note: See TracChangeset for help on using the changeset viewer.