playMaker

Author Topic: audio source - how to stop a sound?  (Read 5722 times)

kinetiknz

  • Junior Playmaker
  • **
  • Posts: 85
audio source - how to stop a sound?
« 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?
« Last Edit: April 18, 2012, 04:07:07 PM by kinetiknz »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: audio source - how to stop a sound?
« Reply #1 on: April 18, 2012, 05:57:38 PM »
Are you using Audio Play (not Play Sound)?

kinetiknz

  • Junior Playmaker
  • **
  • Posts: 85
Re: audio source - how to stop a sound?
« Reply #2 on: April 18, 2012, 06:10:12 PM »
Yeah 'Audio play' and 'play random sound'

kinetiknz

  • Junior Playmaker
  • **
  • Posts: 85
Re: audio source - how to stop a sound?
« Reply #3 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!


Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: audio source - how to stop a sound?
« Reply #4 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?