Is the Visuals class from Bass.Misc.Visuals available for Android?

Started by trojannemo, 23 Feb '25 - 01:12

trojannemo

Hi Ian and everyone, back again with another project that of course involves Bass. This time i'm knee deep in NET MAUI for Android, building a port of my Visualizer that among other things, plays multi channel ogg files through Bass (works great on Android). On my PC version, I make use of the Visuals class from Bass.Misc.Visuals to create a spectrum of the audio being played by the mixer and the user can click to alternate through all the available visuals. I love this feature and use it also on a music player I created that also relies on Bass.
Now here I am, and I can't seem to find a way to use Bass.Misc.Visuals on Android. Is there an alternative within the Android-friendly addons for Bass that I can use to do this? Right now I'm doing a makeshift spectograph using FFT data from ChannelGetData but it is rudimentary compared to what I could get out of Bass.Misc.Visuals. Thanks!

radio42

Bass.Net Bass.Misc.Visuals uses GDI+, which doesn't exist in .Net core (and as such Android).
So the only solution is, that you do the drawing yourself...

trojannemo

I simply don't know the math required to do this. Is the Bass.NET API open source by any chance? Or would you be willing to share just the code that generates the visuals so I can try to refactor it into .NET MAUI?

I'm particularly interested in this one: