I am playing with the idea of using unity to make an audio visualization toy. I see it is easy enough to get the spectrum data from an audiosource in unity, but is there a way to get system/windows spectrum data? Ideally I would like to have the unity app show visualizations for whatever is playing in windows… browser, Spotify, app, game, etc.
I found an asset store script that says it can do this… but I want to know how instead of buying a 3rd party thing. Anyone?
found this: Unity Asset Store - The Best Assets for Game Making
@blaher my asset can indeed do this [ for system configuration see this answer : https://forum.unity3d.com/threads/audiostream-an-audio-streaming-solution-for-all-and-everywhere.412029/page-2#post-3023900 ]
but latest update introduced rather significant latency for recording, so - YMMV
( low latency 2D component is not yet in the works )
- also note that this is not (unfortunately) a script which does this, you need unity package from FMOD, too - as noted in the asset description.
However - you can try Unity’s built in Microphone class for this; - with system audio configured as described in the above it should pick up the listen device, no problem ( I only suspect latency would be noticeable for this though ).
Cheers!