Displaying 1 result from an estimated 1 matches for "dec_frame_size".
2011 Sep 29
1
Nothing but rhythm was left after encoding and decoding by speex on ipad(XCode 4.1 48110)
...ytes, int in_len, void *out_bytes)
{
if (!codec_open)
return 0;
int return_value;
speex_bits_reset(&dbits);
speex_bits_read_from(&dbits, (char *)in_bytes, in_len);
if (0 != speex_decode_int(dec_state, &dbits, (short*)out_bytes)) {
return_value = 0;
}
else {
return_value = dec_frame_size*2;
}
return return_value;
}
Please give your suggestion, thanks.