Displaying 1 result from an estimated 1 matches for "encodespeexwithbuffer".
Did you mean:
decodespeexwithbuffer
2012 Jul 15
0
iPhone distorted audio
...go through without any errors. I bypassed the speex functions and just sent uncompressed PCM using the same app and its crystal clear. Where am I going wrong here? Anyone got any suggestions?
My code is as follows
#define AUDIO_QUALITY 10
#define FRAME_SIZE 160
#define COMP_FRAME_SIZE 62
char *encodeSpeexWithBuffer(spx_int16_t *buffer, int *insize) {
SpeexBits bits;
void *enc_state;
char *outputBuffer = (char *)malloc(COMP_FRAME_SIZE);
speex_bits_init(&bits);
enc_state = speex_encoder_init(&speex_nb_mode);
int quality = AUDIO_QUALITY;
speex_encoder_ctl(e...