Better WMP visualizations (1 Viewer)

Symphy

Retired Team Member
  • Premium Supporter
  • August 25, 2007
    501
    151
    Groningen
    Home Country
    Netherlands Netherlands
    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():

    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
     

    Users who are viewing this thread

    Top Bottom