Dungeon Keeper Edit
Different releases have different names for each track. The track names are as follows:
2. Soft Flute / Peace on Earth
3. Down Deep / Time of Darkness
4. Mystical Tunnels / Mastering The Dungeon / Hidden Gold
5. Its Construction Time [sic] / The Dungeon Keeper / Thieves & Wizards
6. Ghostly Waterways / Temple Haunt / Hardcore
7. The Horned Reaper / Do Not Fear The Reaper / Dungeon Keeper
Track 1 is the data track, which is ignored by some Red Book audio players. On those, it will appear as if track 2 is track 1, track 3 is track 2, and so on. Track 2 is the world map music, track 7 is the credits music, and tracks 3 to 6 are the ones played during levels.
Some releases of Dungeon Keeper Gold do not include the soundtrack.
The formula for deciding which track a level plays is:
3 + ((level number - 1) mod 4)
The SET_MUSIC script command is supposed to override this, but it does not work. It is fixed in recent releases of Dungeon Keeper FX. As its parameter, you need to specify the exact track (the data track counts) you wish the level to play.
Dungeon Keeper FX lets the game play the soundtrack without the CD inserted. This requires there to be music files (in ogg format) in a music directory named keepern.ogg (where n is the two-digit track number) and the -nocd parameter to be used. Starting with KeeperFX 0.4.7.1968, it is possible to have up to 50 music tracks this way.
The sound directory contains a misleadingly-named music.dat file, which is actually a MIDI (specifically, XMI) file that is used (along with SoundFonts) for atmospheric sound effects. It has nothing to do with the game's soundtrack.