Adding custom sounds
From DoomWiki.org
PWADs can include custom sound lumps to replace the already existing sounds present in the games. The Doom engine uses a custom sound format, which is necessary to convert to in order for the PWAD to work with the vanilla engine as well as vanilla-adjacent source ports.
Additionally, some source ports support additional sound formats, such as WAV, MP3, Ogg, FLAC, etc.
Requirements[edit]
To add music to a PWAD, you will need:
- The sound file that you want to use.
- A WAD resource editor, such as SLADE 3.
- An audio editor, such as Audacity.
Importing[edit]
- Open the sound you want to add in the sound editor. Save it in the WAV format as any type of PCM audio. Any sample rate between 1 and 65535 Hz will work, however, sticking to 11025 Hz is recommended to avoid breaking compatibility with certain ports (such as Doom Classic, where all sounds are expected to be 11025 Hz, and will play out of tune if they aren't).
- Open your WAD in SLADE 3. Drag and drop your sound file in the list of entries, but make sure not to insert it inside map lumps or between *_START/*_END markers.
- Right-click on your music file. Select Audio, then select Convert WAV to Doom Sound.
- Rename your sound to the name of the sound you want to replace.
By default, you can't add new sounds, only replace those that are already in place. However, Hexen allowed more freedom in this regard with its SNDINFO lump, and modern ports typically allow for custom sounds to be added via lumps like DEHEXTRA.
