This project has moved. For the latest updates, please go here.

FFT calculation is volume-dependent

Jul 19, 2014 at 8:44 PM
Hello,

i'm currently using NAudio together with WPF Sound Visualization Library (https://wpfsvl.codeplex.com/). 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?
Coordinator
Jul 28, 2014 at 4: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.