Page 1 of 1

Modifying Sounds that are played using AudioWait / Audio

Posted: Wed Oct 28, 2015 12:34 pm
by nishant
Hi ,
I wanted to know which would be the best way to modify sounds that are initiated from dialogue system. My game has menu to change music, sfx volume as I use a sound manager. So I just need some way or code that I can use to tell DialogueSystem to play audio at 'x' volume.

Thanks.
Nishant

Re: Modifying Sounds that are played using AudioWait / Audio

Posted: Thu Oct 29, 2015 10:06 am
by Tony Li
Hi Nishant,

If you're using sequencer commands such as Audio() to play sounds, specify a subject that has an Audio Source component. Otherwise the command will create a default Audio Source. You can optionally configure the Audio Source to play through an Audio Mixer group.

In your sound manager, update the Audio Mixer group (if you're using one) or the subject's Audio Source volume. Using an Audio Mixer group is the easiest way to control multiple Audio Sources.

If you're using Dark Tonic's Master Audio as your sound manager, use the Master Audio sequencer commands.

Re: Modifying Sounds that are played using AudioWait / Audio

Posted: Fri Oct 30, 2015 11:03 am
by nishant
Perfect ... that fixed it ..

Thanks

Re: Modifying Sounds that are played using AudioWait / Audio

Posted: Wed Jan 13, 2016 4:35 pm
by nishant
Hi ,
After recent updates I found out one problem with this. Am not sure if this issue existed before . As I am using an external Audio Source, it plays at a volume given at that source and it works most of the times. Issue arises when I have set the volume to 0. Only under this case does the audio source's volume somehow gets set to 1. Any ideas on how this can be fixed?

Thanks.
Nishant

Re: Modifying Sounds that are played using AudioWait / Audio

Posted: Wed Jan 13, 2016 7:45 pm
by Tony Li
Hi Nishant,

This existed before, but I will change it in the next version (1.5.9). Currently, if the Audio Source's volume is to set 0, the sequencer will set it to 1 when playing the audio clip. In the next version, it will not adjust the volume. If you need a patch before 1.5.9 is release, please let me know.

Re: Modifying Sounds that are played using AudioWait / Audio

Posted: Fri Jan 15, 2016 1:29 pm
by nishant
Oh ok
Its not a high priority bug so I can wait till next release.

Thanks :)