doesn't `fWave = 0;` suffice?