Page 1 of 1

stopSound and how to use it?

PostPosted: Mon Jun 20, 2011 12:12 am
by ThaKid244
Will someone please explain to me how to use the stopSound function?

Re: stopSound and how to use it?

PostPosted: Mon Jun 20, 2011 7:39 am
by skydereign
Simply put, stopSound stops a sound in a given channel. When you use PlaySound2 it returns an int (which is the channel the sound is being played on). Now if you use stopSound and pass it that channel it will stop the sound. If you pass it 0, it will stop everything except the music. That is pretty much all there is to it. One thing to watch out for is if the sound in the channel ends, and you try to stop it, it could very well stop a different sound.