Modifying Sounds that are played using AudioWait / Audio

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
nishant
Posts: 55
Joined: Mon Sep 21, 2015 3:16 pm
Location: Canada
Contact:

Modifying Sounds that are played using AudioWait / Audio

Post 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
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Modifying Sounds that are played using AudioWait / Audio

Post 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.
nishant
Posts: 55
Joined: Mon Sep 21, 2015 3:16 pm
Location: Canada
Contact:

Re: Modifying Sounds that are played using AudioWait / Audio

Post by nishant »

Perfect ... that fixed it ..

Thanks
nishant
Posts: 55
Joined: Mon Sep 21, 2015 3:16 pm
Location: Canada
Contact:

Re: Modifying Sounds that are played using AudioWait / Audio

Post 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
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Modifying Sounds that are played using AudioWait / Audio

Post 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.
nishant
Posts: 55
Joined: Mon Sep 21, 2015 3:16 pm
Location: Canada
Contact:

Re: Modifying Sounds that are played using AudioWait / Audio

Post by nishant »

Oh ok
Its not a high priority bug so I can wait till next release.

Thanks :)
Post Reply