From 62f339dac1921ac5277f5f3f1fb9017f856e81dc Mon Sep 17 00:00:00 2001 From: Brian West Date: Mon, 4 Sep 2006 15:50:30 +0000 Subject: [PATCH] Ok this passes audio.. please test git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2502 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/codecs/mod_lpc10/mod_lpc10.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/mod/codecs/mod_lpc10/mod_lpc10.c b/src/mod/codecs/mod_lpc10/mod_lpc10.c index 4181ca1a01..dcf983c801 100644 --- a/src/mod/codecs/mod_lpc10/mod_lpc10.c +++ b/src/mod/codecs/mod_lpc10/mod_lpc10.c @@ -78,7 +78,6 @@ static switch_status_t switch_lpc10_init(switch_codec_t *codec, switch_codec_fla } } - static switch_status_t switch_lpc10_destroy(switch_codec_t *codec) { codec->private_info = NULL; @@ -98,13 +97,11 @@ static switch_status_t switch_lpc10_encode(switch_codec_t *codec, 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 @@ static switch_status_t switch_lpc10_decode(switch_codec_t *codec, 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;