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
|