dkfans / keeperfx

Open source remake and Fan Expansion of Dungeon Keeper.
https://keeperfx.net/
GNU General Public License v2.0
778 stars 78 forks source link

Custom campaign sound #3676

Open xtremeqg opened 1 week ago

xtremeqg commented 1 week ago

Unified sound banks.

SoundBankIDs have been completely removed. Sound samples are now referenced only by SoundSmplID. The first 1160 SoundSmplIDs are reserved for sound effects and mentor speech, in that order. It is now possible to play samples by name, get_sample_id() provides the SoundSmplID of any named sample. Lots of magic numbers have been replaced with enums. Types of several struct fields have been corrected. Console commands "sound.test" and "speech.test" have been replaced with "sample.test". Campaign sounds are accessible starting from sample ID 1661. Samples can also be specified by name in [sounds] crtr block.