29template <
typename CalcT =
int16_t>
36 LOGE(
"fixedpoint_fft begin failed: len must be a power of two <= %d",
37 (
int)fixedpoint_fft::FixedFFTEngineCore<CalcT>::kMaxN);
48 ffp_object.realData()[idx] = fixedpoint_fft::fftConvertSample<float, CalcT>(value);
72 return re * re + im * im;
80 bool setBin(
int pos,
float real,
float img)
override {
81 if (pos < 0 || pos >=
len)
return false;
82 ffp_object.realData()[pos] = fixedpoint_fft::fftConvertSample<float, CalcT>(real);
83 ffp_object.imagData()[pos] = fixedpoint_fft::fftConvertSample<float, CalcT>(img);
87 if (pos < 0 || pos >=
len)
return false;
103 return fixedpoint_fft::fftConvertSample<CalcT, float>(
ffp_object.real(idx));
106 return fixedpoint_fft::fftConvertSample<CalcT, float>(
ffp_object.imag(idx));
119template <
typename CalcT =
int16_t>
126 return driverEx()->engine()->realData();
131 return driverEx()->engine()->imagData();
#define LOGE(...)
Definition AudioLoggerIDF.h:30