Improvement: LTPF now work on decoded ring buffer

This commit is contained in:
Antoine SOULIER
2022-04-20 14:52:49 +02:00
parent 6f2b25df8a
commit c3831b7b24
8 changed files with 142 additions and 96 deletions

View File

@@ -102,7 +102,7 @@ static PyObject *synthesize_py(PyObject *m, PyObject *args)
CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, nd+ns, &x));
lc3_ltpf_synthesize(dt, sr, nbytes,
&ltpf, pitch_present ? &data : NULL, x+nd);
&ltpf, pitch_present ? &data : NULL, x, x + nd);
from_ltpf_synthesis(ltpf_obj, &ltpf);
return Py_BuildValue("O", x_obj);