Changeset 523 for pjproject/trunk
- Timestamp:
- Jun 19, 2006 12:09:20 PM (18 years ago)
- Location:
- pjproject/trunk/pjmedia/src/pjmedia-codec
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/gsm/proto.h
r517 r523 20 20 #ifdef _NO_PROTO 21 21 # undef NeedFunctionPrototypes 22 #endif 23 24 /* PJMEDIA: always use NeedFunctionPrototypes */ 25 #ifndef NeedFunctionPrototypes 26 # define NeedFunctionPrototypes 1 22 27 #endif 23 28 -
pjproject/trunk/pjmedia/src/pjmedia-codec/gsm/rpe.c
r176 r523 299 299 300 300 assert(temp <= 11 && temp >= 0); 301 xmaxc = gsm_add( SASR(xmax, temp), exp << 3);301 xmaxc = gsm_add( (word)SASR(xmax, temp), (word)(exp << 3) ); 302 302 303 303 /* Quantizing and coding of the xM[0..12] RPE sequence -
pjproject/trunk/pjmedia/src/pjmedia-codec/speex/jitter.c
r516 r523 221 221 jitter->longterm_margin[0] = 0; 222 222 /*fprintf (stderr, "interpolate frame\n");*/ 223 speex_decode_int(jitter->dec, NULL, out);223 speex_decode_int(jitter->dec, NULL, (spx_int16_t*)out); 224 224 if (current_timestamp) 225 225 *current_timestamp = jitter->pointer_timestamp; … … 269 269 { 270 270 /* Try decoding last received packet */ 271 ret = speex_decode_int(jitter->dec, &jitter->current_packet, out);271 ret = speex_decode_int(jitter->dec, &jitter->current_packet, (spx_int16_t*)out); 272 272 if (ret == 0) 273 273 { … … 281 281 /*fprintf (stderr, "lost/late frame %d\n", jitter->pointer_timestamp);*/ 282 282 /*Packet is late or lost*/ 283 speex_decode_int(jitter->dec, NULL, out);283 speex_decode_int(jitter->dec, NULL, (spx_int16_t*)out); 284 284 jitter->lost_count++; 285 285 if (jitter->lost_count>=25) … … 296 296 jitter->len[i]=-1; 297 297 /* Decode packet */ 298 ret = speex_decode_int(jitter->dec, &jitter->current_packet, out);298 ret = speex_decode_int(jitter->dec, &jitter->current_packet, (spx_int16_t*)out); 299 299 if (ret == 0) 300 300 { -
pjproject/trunk/pjmedia/src/pjmedia-codec/speex/kiss_fft.c
r516 r523 88 88 int i; 89 89 kiss_fft_cpx *x=Fout; 90 for (i=0;i< 4*m;i++)90 for (i=0;i<(int)(4*m);i++) 91 91 { 92 92 x[i].r = PSHR16(x[i].r,2); -
pjproject/trunk/pjmedia/src/pjmedia-codec/speex/mdf.c
r516 r523 417 417 #endif 418 418 419 filter_dc_notch16( ref, st->notch_radius, st->d, st->frame_size, st->notch_mem);419 filter_dc_notch16((spx_int16_t*)ref, st->notch_radius, st->d, st->frame_size, st->notch_mem); 420 420 /* Copy input data to buffer */ 421 421 for (i=0;i<st->frame_size;i++)
Note: See TracChangeset
for help on using the changeset viewer.