- Home /
Sound responsive game mechanic
I was wondering if it was position to turn the overall sound output of a scene into variables. So for example, use the volume of a song at different point to change a certain variable, or use the amount of bass at certain parts. I was thinking this may be possible by doing something fancy with the audio listener but I have yet to figure it out.
Answer by tanoshimi · Sep 18, 2014 at 06:59 PM
Sure - you can use audio.GetSpectrumData. Here's an example: http://www.41post.com/4776/programming/unity-making-a-simple-audio-visualization
Your answer
![](https://koobas.hobune.stream/wayback/20220613163224im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
help with multiple sounds 0 Answers
Audio doesn't play 1 Answer
NGUI Volume And Quality Controle With Sliders Not working 1 Answer
Play from a variety of sounds? 1 Answer
Calling an if statement once even when it is calling every frame? 3 Answers