--- a/LuaAPI.wiki Mon Apr 08 02:59:25 2019 +0100
+++ b/LuaAPI.wiki Mon Apr 08 15:02:08 2019 +0100
@@ -1555,14 +1555,14 @@
if it is `false`, cinematic mode is disabled.
== Sound functions ==
-=== <tt>!PlaySound(soundId, [gearUid [, instaVoice]])</tt> ===
+=== `PlaySound(soundId, [gearUid [, instaVoice]])` ===
Plays the specified sound. Possible values for `soundId` are listed on the [Sounds] page.
To play a voice (see [Taunts] for a list), you must also set `gearUid`. `gearUid` is the hedgehog gear which is used to “talk”.
If you play a voice, by default the voice will respect an internal queue and might be played with an delay in order to prevent annoying voice overlapping. Since version 0.9.24, you can disable this behaviour and force Hedgewars to instantly play the voice by also setting `instaVoice` to `true`. Only use `instaVoice` when you really need it.
-=== <tt>!PlayMusicSound(soundId)</tt> (0.9.25) ===
+=== `PlayMusicSound(soundId)` (0.9.25) ===
Plays a sound as replacement for the background music. The sound is played once. The main music is paused and the sound is played instead. The main background music does not resume automatically, so you should call `StopMusicSound` after a while.
Example:
@@ -1570,10 +1570,10 @@
PlayMusicSound(sndRideOfTheValkyries) -- Replace the background music the Ride of the Valkyries
</code>
-=== <tt>!StopMusicSound(soundId)</tt> (0.9.25) ===
+=== `StopMusicSound(soundId)` (0.9.25) ===
Stops the specified “music sound” (if it was still playing) and resumes the main background music.
-=== <tt>!SetSoundMask(soundId, isMasked)</tt> (0.9.24) ===
+=== `SetSoundMask(soundId, isMasked)` (0.9.24) ===
Disables a given sound (including taunts) from being played by the engine. `soundId` is a valid sound ID on [Sounds] or [Taunts]. `isMasked` is a boolean. If `true`, the sound will not be played by the engine anymore. If `false`, playing this sound is allowed again.
Sounds played by the Lua function `PlaySound` will always work, however, and ignore the sound mask.