hook gain param up to waveform resample