mdct: work on 2 input buffers, and remove 1 encoding buffer

This commit is contained in:
Antoine SOULIER
2022-05-05 13:54:50 +02:00
parent 0cec73a6fb
commit 3568ee1cbf
8 changed files with 63 additions and 63 deletions
+2 -2
View File
@@ -108,12 +108,12 @@ struct lc3_encoder {
lc3_spec_analysis_t spec;
int16_t *xt;
float *xs, *xf, s[0];
float *xs, *xd, s[0];
};
#define LC3_ENCODER_BUFFER_COUNT(dt_us, sr_hz) \
( ( __LC3_NS(dt_us, sr_hz) + __LC3_NT(sr_hz) ) / 2 + \
2*__LC3_NS(dt_us, sr_hz) + __LC3_ND(dt_us, sr_hz) )
__LC3_NS(dt_us, sr_hz) + __LC3_ND(dt_us, sr_hz) )
#define LC3_ENCODER_MEM_T(dt_us, sr_hz) \
struct { \