[commit] r2502 - freeswitch/trunk/src/mod/codecs/mod_lpc10
Author: brian Date: Mon Sep 4 11:50:30 2006 New Revision: 2502 Modified: freeswitch/trunk/src/mod/codecs/mod_lpc10/mod_lpc10.c Log: Ok this passes audio.. please test Modified: freeswitch/trunk/src/mod/codecs/mod_lpc10/mod_lpc10.c ============================================================================== --- freeswitch/trunk/src/mod/codecs/mod_lpc10/mod_lpc10.c (original) +++ freeswitch/trunk/src/mod/codecs/mod_lpc10/mod_lpc10.c Mon Sep 4 11:50:30 2006 @@ -78,7 +78,6 @@ } } - static switch_status_t switch_lpc10_destroy(switch_codec_t *codec) { codec->private_info = NULL; @@ -98,14 +97,12 @@ unsigned int *flag) { struct lpc10_context *context = codec->private_info; - int i; - INT32 bits[BitsPerFrame]; + uint8_t i; + int32_t bits[BitsPerFrame]; real speech[SamplesPerFrame]; - short * sampleBuffer = (short *)encoded_data; - unsigned char * buffer = (unsigned char *)decoded_data; + const short *sampleBuffer = (const short *)decoded_data; + unsigned char *buffer = (unsigned char *)encoded_data; - - if (!context) { return SWITCH_STATUS_FALSE; } @@ -142,8 +139,8 @@ int i; INT32 bits[BitsPerFrame]; real speech[SamplesPerFrame]; - short * sampleBuffer = (short *)decoded_data; - unsigned char * buffer = (unsigned char *)encoded_data; + short *sampleBuffer = (short *)decoded_data; + const unsigned char *buffer = (const unsigned char *)encoded_data; if (!context) { return SWITCH_STATUS_FALSE;
participants (1)
-
Freeswitch SVN