forked from Mirrors/freeswitch
Ok this passes audio.. please test
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2502 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
19a820229f
commit
62f339dac1
@ -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)
|
static switch_status_t switch_lpc10_destroy(switch_codec_t *codec)
|
||||||
{
|
{
|
||||||
codec->private_info = NULL;
|
codec->private_info = NULL;
|
||||||
@ -98,13 +97,11 @@ static switch_status_t switch_lpc10_encode(switch_codec_t *codec,
|
|||||||
unsigned int *flag)
|
unsigned int *flag)
|
||||||
{
|
{
|
||||||
struct lpc10_context *context = codec->private_info;
|
struct lpc10_context *context = codec->private_info;
|
||||||
int i;
|
uint8_t i;
|
||||||
INT32 bits[BitsPerFrame];
|
int32_t bits[BitsPerFrame];
|
||||||
real speech[SamplesPerFrame];
|
real speech[SamplesPerFrame];
|
||||||
short * sampleBuffer = (short *)encoded_data;
|
const short *sampleBuffer = (const short *)decoded_data;
|
||||||
unsigned char * buffer = (unsigned char *)decoded_data;
|
unsigned char *buffer = (unsigned char *)encoded_data;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!context) {
|
if (!context) {
|
||||||
return SWITCH_STATUS_FALSE;
|
return SWITCH_STATUS_FALSE;
|
||||||
@ -143,7 +140,7 @@ static switch_status_t switch_lpc10_decode(switch_codec_t *codec,
|
|||||||
INT32 bits[BitsPerFrame];
|
INT32 bits[BitsPerFrame];
|
||||||
real speech[SamplesPerFrame];
|
real speech[SamplesPerFrame];
|
||||||
short *sampleBuffer = (short *)decoded_data;
|
short *sampleBuffer = (short *)decoded_data;
|
||||||
unsigned char * buffer = (unsigned char *)encoded_data;
|
const unsigned char *buffer = (const unsigned char *)encoded_data;
|
||||||
|
|
||||||
if (!context) {
|
if (!context) {
|
||||||
return SWITCH_STATUS_FALSE;
|
return SWITCH_STATUS_FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user