Is there any replacement to AudioSource.GetOutputData in WebGL
I’m making some dance application, and all works fine (compared to WebPlayer)
expect the spectrum bar and shadows.
From others threads I see shadows quality is known issude,
so I ask about AudioSource.GetOutputData, I need that data to draw simple spectrum bar while the song is playing (in reality just the amplitude provided in every MonoBehaviour.Update step would be sufficient)
Any ideas how to hack this ?
(or there are any plans to make the original function to work again in webGL?)
I know this is super old, but we had the same question. We needed this capability to bring our SALSA Lipsync system to WebGL and found the unfortunate answer that Unity has no plans to address the missing API any time soon, which is obvious now by the four year gap between your post and mine. We learned about the possibility of accessing the web browsers Web Audio API directly using JavaScript in the forum below. There is enough information on that page to work it out.
For any future readers that want to skip the drudgery that we went through to get it all working, we built an asset of our solution that provides easy access to amplitude and spectrum data on the WebGL platform (Amplitude for WebGL).