Some work towards being able to encode a 48 kHz stream from 32 kHz audio (incomplete)
This commit is contained in:
parent
3b0df0dc2a
commit
85f41b20df
3 changed files with 40 additions and 17 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue