Some work towards being able to encode a 48 kHz stream from 32 kHz audio (incomplete)

This commit is contained in:
Jean-Marc Valin 2010-07-16 18:12:45 -04:00
parent 3b0df0dc2a
commit 85f41b20df
3 changed files with 40 additions and 17 deletions

View file

@ -389,6 +389,9 @@ CELTMode *celt_mode_create(celt_int32 Fs, int frame_size, int *error)
if (mode->eBands==NULL)
goto failure;
mode->effEBands = mode->nbEBands;
while (mode->eBands[mode->effEBands] > mode->shortMdctSize)
mode->effEBands--;
mode->pitchEnd = 4000*(celt_int32)mode->shortMdctSize/Fs;
/* Overlap must be divisible by 4 */