Displaying 1 result from an estimated 1 matches for "tempencode".
Did you mean:
tempcode
2005 Feb 22
1
Win CE playback error
...LING_RATE,&x);
x = 2; //set the quality
speex_encoder_ctl(enc_state,SPEEX_SET_QUALITY,&x);
x = 3; //set the complexity
speex_encoder_ctl(enc_state,SPEEX_SET_COMPLEXITY,&x);
speex_bits_reset(&bits);
//to convert my unsigned char buffer array to short for encoding
short TempEncode [160];
for (i=0; i<160; i++);
{
TempEncode[i] = buffer[i];
}
speex_encode_int(enc_state, TempEncode, &bits);
char encode[200];
int nbBytes = speex_bits_write(&bits, encode, 200);
speex_encoder_destroy(enc_state);
speex_bits_reset(&bits);
speex_bits_read_from(&bits, enco...