search for: decodespeexwithbuffer

Displaying 1 result from an estimated 1 matches for "decodespeexwithbuffer".

2012 Jul 15
0
iPhone distorted audio
...et(&bits); speex_encode_int(enc_state, buffer, &bits); *insize = speex_bits_write(&bits, outputBuffer, COMP_FRAME_SIZE); speex_bits_destroy(&bits); speex_encoder_destroy(enc_state); return outputBuffer; } short *decodeSpeexWithBuffer(char *buffer) { SpeexBits bits; void *dec_state; speex_bits_init(&bits); dec_state = speex_decoder_init(&speex_nb_mode); short *outTemp = (short *)malloc(FRAME_SIZE * 2); speex_bits_read_from(&bits, buffer, COMP_FRAME_SIZE); speex_decode_i...