Page 1 of 1

[SOLVED] Making Audio Sources Exempt from World Positioning

Posted: Sun Mar 18, 2018 8:05 pm
by WalterMays
I'm working on a game where I play both music and sound effects. Some effects should be placed "in the world," while others should be played at regular volume (e.g. sound effects for menu screens). Music should never be placed in the world. How can I make some sounds exempt from having their volume and stereo properties modified?

Re: Making Audio Sources Exempt from World Positioning

Posted: Sun Mar 18, 2018 10:11 pm
by raidho36
You can play them in the same location as your sound listener. Using "setRelative" function will make the source track the listener.

Re: Making Audio Sources Exempt from World Positioning

Posted: Sun Mar 18, 2018 10:12 pm
by zorg
Also, stereo sources won't really be affected anyway.

Re: Making Audio Sources Exempt from World Positioning

Posted: Sun Mar 18, 2018 10:34 pm
by WalterMays
raidho36 wrote: Sun Mar 18, 2018 10:11 pm You can play them in the same location as your sound listener. Using "setRelative" function will make the source track the listener.
That's exactly what I needed! I set the position to the position of the player, but if the player was moving it wouldn't work correctly. Thank you so much! That solved my problem.