Audio fade in/out?
Posted: Thu Jan 15, 2015 7:55 pm
I can't seem to find a way to do this properly without frequent audio glitches.
Currently what I'm doing is tweening a volume variable from 0-1 and assigning it to my audio every update. Unfortunately this sporadically causes some unwanted noise (http://vocaroo.com/i/s0ZvMDfwY1BO).
What are some other ways I can smoothly increment/decrement volume? Should I just do it manually?
EDIT: Turns out this is an issue with TESound, the audio library I'm using. Apparently something about its volume function doesn't agree with being called every update.
Currently what I'm doing is tweening a volume variable from 0-1 and assigning it to my audio every update. Unfortunately this sporadically causes some unwanted noise (http://vocaroo.com/i/s0ZvMDfwY1BO).
What are some other ways I can smoothly increment/decrement volume? Should I just do it manually?
EDIT: Turns out this is an issue with TESound, the audio library I'm using. Apparently something about its volume function doesn't agree with being called every update.