gain_tab[i] = pow_tab[i + 53].powf(8.0 / fsamples);
}
let size = samples;
- CookDSP { imdct: IMDCT::new(FFTMode::SplitRadix, samples*2), window: window, out: [0.0; 2048], size, pow_tab, hpow_tab, gain_tab }
+ CookDSP { imdct: IMDCT::new(FFTMode::SplitRadix, samples*2, false), window: window, out: [0.0; 2048], size, pow_tab, hpow_tab, gain_tab }
}
}
decouple: [u8; BAND_SIZE],
category: [u8; MAX_SUBBANDS * 2],
- block: [[f32; MAX_SAMPLES]; 2],
+ block: [[f32; MAX_SAMPLES * 2]; 2],
delay: [[f32; MAX_SAMPLES]; 2],
gains: [[i32; 9]; 2],
prev_gains: [[i32; 9]; 2],
decouple: [0; BAND_SIZE],
category: [0; MAX_SUBBANDS * 2],
- block: [[0.0; MAX_SAMPLES]; 2],
+ block: [[0.0; MAX_SAMPLES * 2]; 2],
delay: [[0.0; MAX_SAMPLES]; 2],
gains: [[0; 9]; 2],
prev_gains: [[0; 9]; 2],
validate!(num_gains <= 8);
swap(&mut self.gains[channel], &mut self.prev_gains[channel]);
- self.block[channel] = [0.0; MAX_SAMPLES];
+ self.block[channel] = [0.0; MAX_SAMPLES * 2];
// gains
let mut ipos = 0;
self.bitalloc(num_vectors, br.left() as usize);
// coefficients
- self.block[channel] = [0.0; MAX_SAMPLES];
+ self.block[channel] = [0.0; MAX_SAMPLES * 2];
let mut off = 0;
for sb in 0..tot_subbands {
let mut coef_index: [u8; BAND_SIZE] = [0; BAND_SIZE];