mirror of
https://github.com/google/liblc3.git
synced 2026-04-18 05:35:31 +00:00
feature: Add 2.5 ms and 5 ms LC3 plus frame durations
fix: Check TNS bitstream data fix: LTPF Activation with 2.5 ms frame sizes
This commit is contained in:
committed by
Antoine Soulier
parent
a75f187e00
commit
149cb6537e
@@ -36,7 +36,7 @@ static PyObject *compute_scale_factors_py(PyObject *m, PyObject *args)
|
||||
CTYPES_CHECK("dt", (unsigned)dt < LC3_NUM_DT);
|
||||
CTYPES_CHECK("sr", (unsigned)sr < LC3_NUM_SRATE);
|
||||
|
||||
int nb = LC3_MIN(lc3_band_lim[dt][sr][LC3_NUM_BANDS], LC3_NUM_BANDS);
|
||||
int nb = lc3_num_bands[dt][sr];
|
||||
|
||||
CTYPES_CHECK("eb", to_1d_ptr(eb_obj, NPY_FLOAT, nb, &eb));
|
||||
scf_obj = new_1d_ptr(NPY_FLOAT, 16, &scf);
|
||||
@@ -150,7 +150,7 @@ static PyObject *analyze_py(PyObject *m, PyObject *args)
|
||||
CTYPES_CHECK("sr", (unsigned)sr < LC3_NUM_SRATE);
|
||||
|
||||
int ne = LC3_NE(dt, sr);
|
||||
int nb = LC3_MIN(ne, LC3_NUM_BANDS);
|
||||
int nb = lc3_num_bands[dt][sr];
|
||||
|
||||
CTYPES_CHECK("eb", to_1d_ptr(eb_obj, NPY_FLOAT, nb, &eb));
|
||||
CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, ne, &x));
|
||||
|
||||
Reference in New Issue
Block a user