Displaying 1 result from an estimated 1 matches for "encodedsize".
Did you mean:
encode_size
2012 Sep 30
0
Speex (in ios) really poor quality (and robotic) sound
...g(@"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, outputBuffer, FRAME_SIZE * 2);
return outputBuffer;
}
s...