Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Game programming

Stop All Sound??  [SOLVED]

All about the StoneScript

Stop All Sound??

Postby RedQueen » 17 Jul 2012, 17:43

I have looked through the documentation and I didn't find it under sound and was wondering if it was somewhere else. I have sound playing to a pattern as it plays. I was wondering if there was an option to stop all sound somewhere that I might have over looked. I looked in system, application and sound. There is sound.stop but you have to give the the object and index and if you ++ sounds you want to stop it could be a bit of coding.
RedQueen
Platinum Boarder
Platinum Boarder
 
Posts: 328

Re: Stop All Sound??  [SOLVED]

Postby Shaderman » 17 Jul 2012, 18:14

Does hud.stopAllSounds ( hUser ) help?

Call this function to stop all the sounds of the HUD SoundBank.
User avatar
Shaderman
Platinum Boarder
Platinum Boarder
 
Posts: 552
Location: Heidelberg, Germany

Re: Stop All Sound??

Postby RedQueen » 17 Jul 2012, 19:01

It appears to work..:/ didn't think to look under the HUD functionality.

Thanks :D
RedQueen
Platinum Boarder
Platinum Boarder
 
Posts: 328

Re: Stop All Sound??

Postby Shaderman » 17 Jul 2012, 21:42

You're welcome. I knew I read about something like that somewhere, but didn't remember details. All I did was searching for "shiva3d stop all sounds" on google ;)
User avatar
Shaderman
Platinum Boarder
Platinum Boarder
 
Posts: 552
Location: Heidelberg, Germany


Return to Game programming