And i play sounds in the world using Vector3 my sound group is set to 3d. And i wanted to control the audio volume max zoom vs min zoom more. Right now you can't hear door opening sound about half way to top zoom.
I tried a bit naive solution by providing PlaySound3DAtVector3 with float of audio percentage. Calculated with lerp from min to max zoom zoom (5f, 0.5f, 0-1 %zoom). But there is complicated interaction going on with master audio calculating it's own fall off of + my % float and it's hard to tell what is happening but i stop hearing sound at like 20% of max zoom. Can i access min max distance of sound group somewhere and control it? Or how to best solve this?
I have the new 2022 master audio. Also camera is not ortographic, it's perspective heavily tweaked, and distance from the door to the camera at max zoom can be around 750 world units.
Post by DarkTonic Dev on Oct 18, 2023 18:05:37 GMT
I don't think you need to be messing with calculating volume percentage. Just set the Audio Source Template (min / max volume mainly) to one that is large enough for those Sound Groups. There are controls to select and apply that at the Sound Group level on the Master Audio Mixer section up top. We do not calculate falloff, that's based on the 3D Sound settings the template has.
Found it.. it's prefabs in the folder i fiddled with the curve on one and applied it to all my sounds. It would be nice if scene singleton had open folder button to guide me . Also is there a way to link max distance audio source prefabs to sound groups. If there wasn't apply audio source template to all button i wouldn't know how to do it..