Comments

Log in with itch.io to leave a comment.

how do i add my own audio

Very cool! How did you get this working on webgl?

I kind of cheated by pre-calculating and saving the values for the audio, then reading off of the  recorded data based on how much the audio clips had progressed. It adds more to storage, but at least it technically brings down computation to O(1) lol

Very clever. What is the reason why the audio visualizer works properly for like a windows build and not web gl? That is my issue. Ive noticed the determinism for a lot of random scripts or something also acts differently on webgl over windows for Unity builds.

(+1)

My understanding is that Unity relies on multi-threading many of its tasks (like getting spectrum data) in order to accomplish these things in real time. Unfortunately, webgl doesn't allow for any multi-threading, so builds that rely on it just kind of don't work properly. As it stands, I couldn't find a way to have unity not try to multi-thread processes like 'get_spectrum_data', so doing the calculations before building seemed to be the best solution at the time. 

I hope this helped at all!