pretwiddle2: pretwiddle2,
posttwiddle: posttwiddle,
tmp: [FFTC_ZERO; COEFFS/2],
- fft: FFTBuilder::new_fft(FFTMode::SplitRadix, COEFFS/2),
+ fft: FFTBuilder::new_fft(COEFFS/2, false),
window: window,
}
}
self.tmp[i].re = -(c2 * in1 + c1 * in2);
self.tmp[i].im = c1 * in1 - c2 * in2;
}
- self.fft.do_fft_inplace(&mut self.tmp, false);
+ self.fft.do_ifft_inplace(&mut self.tmp);
for i in 0..COEFFS/2 {
let tmp = !(self.tmp[i] * self.posttwiddle[i]);
let c1 = self.window[i * 2];
const CHMAP_STEREO: [NAChannelType; 2] = [NAChannelType::L, NAChannelType::R];
impl NADecoder for IMCDecoder {
- fn init(&mut self, info: NACodecInfoRef) -> DecoderResult<()> {
+ fn init(&mut self, _supp: &mut NADecoderSupport, info: NACodecInfoRef) -> DecoderResult<()> {
if let NACodecTypeInfo::Audio(ainfo) = info.get_properties() {
self.chmap = NAChannelMap::new();
match ainfo.get_channels() {
Err(DecoderError::InvalidData)
}
}
- fn decode(&mut self, pkt: &NAPacket) -> DecoderResult<NAFrameRef> {
+ fn decode(&mut self, _supp: &mut NADecoderSupport, pkt: &NAPacket) -> DecoderResult<NAFrameRef> {
let info = pkt.get_stream().get_info();
validate!(info.get_properties().is_audio());
let pktbuf = pkt.get_buffer();