Sound effects
The engine in ten minutes · Play a sound · AdLib sounds (ADL) · Speaker and Tandy sounds (SND) · Sound and music
In brief
The game names its sounds by number, from 0 to 119. A number is not a
sound in itself: it selects an entry of the
sound-effect table
of the sound file loaded with the current level, which tells the sound
driver what to play. This page lists which events of the game play which
number. Level scripts play their own numbers with
SCRIPT_PLAY_SOUND; their uses
are described on the level pages.
A sound is played in one of two ways:1
- at once, as the event happens;
- from a block, as an environmental sound: the game keeps it waiting, with a level that falls with the block's distance from the party, and plays it at the next environmental request or at the end of the pass of the game loop; a block 16 or more blocks away plays nothing. Only these sounds carry a volume, and only the AdLib driver uses it.
Nothing is played while the "Sounds" option is off or no sound driver is set. Sound 0 is used to silence the sound in progress: the game plays it when a level is loaded, when the dialogue screen opens, and in the introduction and the ending.
The sounds of the game
Positions of blocks are written as in the rest of the documentation; the sound numbers are decimal.
Party and items
| Event | Sound | How |
|---|---|---|
| The party bumps into something it cannot enter ("You can't go that way") | 29 | At once2 |
| A character eats | 9 | At once3 |
| A character drinks a potion | 10 | At once; a potion of speed also plays 1004 |
| A horn is blown | 64 to 67, by its value 1 to 4 | At once5 |
| A character throws a weapon | 11 | At once6 |
| A bow fires, or an item is launched as an arrow | 26 | At once; any other launcher or launched item plays 117 |
| A melee attack ends with a result of 0 | 32 | At once8 |
| A flying item lands | 18 | From its block9 |
| A character gains a level | 23 | At once10 |
| A character is hurt | 21 | At once11 |
| A character dies | 22 | At once11 |
Magic
| Event | Sound | How |
|---|---|---|
| A spell starts | The spell's own sound | At once12 |
| A spell warning: a spell that cannot be cast, Aid on a character who already has it | 79 | At once13 |
| An explosion | 35 | At once with the explosion picture; from the party's block, with no picture, while the party rests, at the outer visible positions, or beside the centre column when the object flies across the view; nothing when the block is out of sight14 |
| Turn undead | 95 | At once15 |
Monsters
| Event | Sound | How |
|---|---|---|
| A monster steps into a new block | The step sound of its type (sound_2 of the INF monster type) | From the new block, except while the party rests16 |
| A monster attacks in melee | The attack sound of its type (sound_1) | From the party's block, once per attack17 |
| A monster casts a spell | The spell's own sound | From the monster's block18 |
| A monster uses its mind blast | 103 | From the monster's block19 |
| The final opponent of level 16 changes form | 56 | At once, with the DRANX pictures20 |
Doors and walls
| Event | Sound | How |
|---|---|---|
| A door opens by one step | 3 | From the party's block, at any distance21 |
| A door closes by one step | 4 | From the party's block, at any distance; 5 when it reaches its closed state21 |
| A door switch is used | 6 | At once22 |
Dungeon and levels
| Event | Sound | How |
|---|---|---|
| Ambient sound, every 18 × (1d10 + 3) ticks | 27 or 28 | From the party's block index plus 0 to 1123 |
| A level or sublevel is loaded | 0 | At once24 |
Screens and sequences
| Event | Sound | How |
|---|---|---|
| The party creation screen opens | 0, then 13, its music | At once25 |
| A button of the creation screens is pressed | 76, not heard | At once25 |
| The party is complete and the game starts | 15 | At once25 |
| The dialogue screen opens, closes | 0, 2 | At once26 |
| The conversation with Insal, Calandra, Shorn starts | 57, 53, 55 | At once; when Calandra is answered "talk", 0, then 91 three ticks later, before the recruitment dialogue27 |
| The portal animation | 33 and 19, then 24 or 86 and 31 or 90 as the frames go | At once28 |
| The dream that can replace a rest on level 3 | 54 | At once29 |
| The defeat scene | 56 | At once30 |
The introduction and the ending play their own numbers from their own sound files; their pages list them.
ANOMALY-158 — The buttons of the party creation screens ask for sound 76, which the
sound file loaded at that moment does not hold: its entry is empty in both
INTRO.ADL and INTRO.SND, so pressing a button
is silent with every driver. A faithful reimplementation plays nothing.25
Sources
Locations refer to the game executable reference. The call sites were found by searching the executable and its overlays for every call of the sound routines.