Changeset 412 for pjproject/trunk/pjsip-apps/src/samples/sndinfo.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/sndinfo.c
r410 r412 74 74 } 75 75 76 static intclock_rate;77 static intplay_counter;78 static intrec_counter;79 static intmin_delay = 0xFFFF, max_delay;76 static unsigned clock_rate; 77 static unsigned play_counter; 78 static unsigned rec_counter; 79 static unsigned min_delay = 0xFFFF, max_delay; 80 80 static char play_delays[1000]; 81 81 static pj_uint32_t last_play_timestamp, last_rec_timestamp; … … 85 85 { 86 86 static pj_timestamp last_cb; 87 88 89 PJ_UNUSED_ARG(user_data); 90 PJ_UNUSED_ARG(output); 91 PJ_UNUSED_ARG(size); 92 87 93 88 94 ++play_counter; … … 93 99 } else if (play_counter <= PJ_ARRAY_SIZE(play_delays)) { 94 100 pj_timestamp now; 95 intdelay;101 unsigned delay; 96 102 97 103 pj_get_timestamp(&now); … … 105 111 last_cb = now; 106 112 107 play_delays[play_counter-1] = delay;113 play_delays[play_counter-1] = (char)delay; 108 114 } 109 115 … … 114 120 const void *input, unsigned size) 115 121 { 122 123 PJ_UNUSED_ARG(size); 124 PJ_UNUSED_ARG(input); 125 PJ_UNUSED_ARG(user_data); 126 127 116 128 ++rec_counter; 117 129 … … 249 261 250 262 int dev_id; 251 pjmedia_dir dir ;263 pjmedia_dir dir = PJMEDIA_DIR_NONE; 252 264 int nchannel; 253 265 int bits;
Note: See TracChangeset
for help on using the changeset viewer.