Energy is now Laplace-encoded (very poorly for now)
This commit is contained in:
parent
8143be3026
commit
e38c7c18f7
4 changed files with 22 additions and 11 deletions
|
@ -397,12 +397,12 @@ int celt_decode(CELTDecoder *st, char *data, int len, short *pcm)
|
|||
ec_byte_readinit(&buf,data,len);
|
||||
ec_dec_init(&dec,&buf);
|
||||
|
||||
/* Get band energies */
|
||||
unquant_energy(st->mode, bandE, st->oldBandE, &dec);
|
||||
|
||||
/* Get the pitch index */
|
||||
pitch_index = ec_dec_uint(&dec, MAX_PERIOD-(B+1)*N);;
|
||||
|
||||
/* Get band energies */
|
||||
unquant_energy(st->mode, bandE, st->oldBandE, &dec);
|
||||
|
||||
/* Pitch MDCT */
|
||||
compute_mdcts(&st->mdct_lookup, st->window, st->out_mem+pitch_index, P, N, B);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue