Displaying 2 results from an estimated 2 matches for "comp_frame_size".
2012 Jul 15
0
iPhone distorted audio
...encode and decode functions 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_QUAL...
2012 Sep 30
0
Speex (in ios) really poor quality (and robotic) sound
...atus, "");
}
catch (CAXException &e) {
NSLog(@"CAXException...");
}
catch (...) {
fprintf(stderr, "An unknown error occurred\n");
}
}
my speex encode & decode function :
#define FRAME_SIZE 160
#define COMP_FRAME_SIZE 62
char* encodeSpeex(spx_int16_t *buffer, UInt32 inSize, int *encodedSize) {
char *outputBuffer = (char *)malloc(COMP_FRAME_SIZE);
speex_bits_reset(&bits_in);
speex_encode_int(enc_state, buffer, &bits_in);
*encodedSize = speex_bits_write(&bits_in...