pub fn gain2(buf: &ProcBuf, frame: usize) -> f32