Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: kinetiknz on April 17, 2012, 11:22:07 PM

Title: audio source - how to stop a sound?
Post by: kinetiknz on April 17, 2012, 11:22:07 PM
Hey, I have a music handler that starts playing a song on the same game object when a button is clicked. When I lead the FSM to a node that mutes/ reduces volume or even changes the audio clip and nothing happens? The node is being processed, and both of the nodes are using "owner' as the selection.

I have been reading a few other posts, and it seems that audio stop is designed to stop the playing of the current clip when it finishes??  

Even disabling the gameobject containing the audio source doesn't stop it.  What is the easy way to do this??

Any ideas?
Title: Re: audio source - how to stop a sound?
Post by: Alex Chouls on April 18, 2012, 05:57:38 PM
Are you using Audio Play (not Play Sound)?
Title: Re: audio source - how to stop a sound?
Post by: kinetiknz on April 18, 2012, 06:10:12 PM
Yeah 'Audio play' and 'play random sound'
Title: Re: audio source - how to stop a sound?
Post by: kinetiknz on April 18, 2012, 07:29:42 PM
I have setup a test scene to simplify things, but I still can't effect the sound (in any way) once it has started!

Title: Re: audio source - how to stop a sound?
Post by: Alex Chouls on April 19, 2012, 01:29:57 AM
I just tested it here and it seems to be working fine.

Are you maybe playing the sound on another Audio Source not controlled by PlayMaker?