This project has moved and is read-only. For the latest updates, please go here.

FFT calculation is volume-dependent

Jul 19, 2014 at 9:44 PM

i'm currently using NAudio together with WPF Sound Visualization Library ( FFT is calculated by a sample aggregator which is provided in the WPF Sound Visualization Library source code. The spectrum works well, but it seems volume dependent. When the NAudio player is muted, the spectrum s not displayed.

Is there a way to make FFT calculation independent of the volume?
Jul 28, 2014 at 5:30 PM
Yes, you need to move the FFT calculation earlier in your signal chain, before the volume control is applied. The NAudio demo shows a similar concept where the waveform visualisation is drawn before the volume, but the volume meter visualisation is drawn after volume is applied.