Hi there!
I have noticed that the response of WMP visualizations is very poor.
It can be improved alot by applying a logarithmic scale to the FFT data coming from BASS_ChannelGetData():
This will create a value between 255 and 0 representing a range between 0 and -90dB
The resulting visuals is very similar to what WMP itself produces.
Regards,
Symphy
I have noticed that the response of WMP visualizations is very poor.
It can be improved alot by applying a logarithmic scale to the FFT data coming from BASS_ChannelGetData():
Code:
float val = (90f + ((float)Math.Log10(fft[i]) * 20f)) * (255f / 90f);
if (val < 0)
val = 0;
else if (val > 255)
val = 255;
This will create a value between 255 and 0 representing a range between 0 and -90dB
The resulting visuals is very similar to what WMP itself produces.
Regards,
Symphy