spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * Multimedia functions

StopSound

static Game.StopSound(optional bool stopAmbientSounds)
Stops all currently playing sounds. This will stop all sound effects started with PlaySound; it will not stop background music or speech.

The stopAmbientSounds parameter defines whether ambient sounds should be stopped as well. If it is false (the default), then only sound effects will stop, and ambient sounds will continue. If it is true, then both sound effects and ambient sounds will be stopped.

Example:

Game.StopSound();
will stop any currently playing sound effects.

See Also: PlaySoundEx, StopAmbientSound, StopChannel


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.