Implements hard CBR for SILK

This is achieved by running the encoding process in a loop and
padding when we don't reach the exact rate. It also implements
VBR-with-cap, which means we no longer need to artificially decrease
the SILK bandwidth when it's close to the cap.
This commit is contained in:
Jean-Marc Valin 2011-10-20 00:39:41 -04:00
parent dbf2ea841e
commit 294bfec27b
25 changed files with 442 additions and 94 deletions

View file

@ -726,7 +726,7 @@ int opus_decode_float(OpusDecoder *st, const unsigned char *data,
if (ret > 0)
{
for (i=0;i<ret*st->channels;i++)
pcm[i] = (1./32768.)*(out[i]);
pcm[i] = (1.f/32768.f)*(out[i]);
}
RESTORE_STACK;
return ret;