Jump to content

My new sound effects are static


Recommended Posts

You'll need to convert the sound effects to the Doom sound format for them to work in most source ports. I believe there's a function in SLADE to do that if you right-click on the lump.

Share this post


Link to post
2 minutes ago, Shepardus said:

You'll need to convert the sound effects to the Doom sound format for them to work in most source ports. I believe there's a function in SLADE to do that if you right-click on the lump.

Could you show me how, I don't see it.

Share this post


Link to post

Ah, turns out SLADE can convert WAV format to/from the Doom format, but not OGG. You'll need to use other software to convert to WAV and then use SLADE to convert to the Doom format (when you right-click a WAV format lump there should be an "Audio" menu, within which is "Convert WAV to Doom sound").

Share this post


Link to post
Just now, Shepardus said:

Ah, turns out SLADE can convert WAV format to/from the Doom format, but not OGG. You'll need to use other software to convert to WAV and then use SLADE to convert to the Doom format (when you right-click a WAV format lump there should be an "Audio" menu, within which is "Convert WAV to Doom sound").

Tysm, just one more question :D When you convert it, will it decrease audio quality?

Share this post


Link to post

Conversion to WAV should be lossless but the Doom format would probably lose some resolution on account of using 8-bit samples (see wiki article on the sound format).

 

I also just remembered that DMXConv, part of the DoomTools suite, can also do this conversion, and can also handle non-WAV formats if you have FFmpeg.

Share this post


Link to post
2 hours ago, AtomIsTired said:

Tysm, just one more question :D When you convert it, will it decrease audio quality?

In a sense of speaking, yes, because most Doom sound effects are unsigned 8-bit, 11 kHz, mono. (The few exceptions are the Super Shotgun reload sounds and the item respawn sound, which are 22 kHz instead.)

 

Therefore, it's likely better that you convert your sounds to that as a WAV before importing.

 

For what it's worth, this really only matters for Vanilla - many source ports would be able to play Ogg SFX just fine. Obviously though, a vanilla-friendly method will also be the most universally-compatible one.

 

In theory, though, it could handle anything between 1 Hz and 65535 Hz, so a typical 44100 Hz sound might well work (at the cost of considerably growing the WAD's size, of course), but if it doesn't, downgrading it to what I mentioned is almost sure to get it to work.

Edited by Dark Pulse

Share this post


Link to post
On 9/25/2023 at 4:09 PM, Dark Pulse said:

For what it's worth, this really only matters for Vanilla

You'd think but the situation with sounds is much different than music for Doom ports. A lot of ports support alternate music formats because that system can be split off and run almost entirely dumb, you just signal that music starts to a particular library then grab the output buffer.

Sound effects however are different, they need to be run through a positional mixer and the mix needs to update on a per frame basis. Most ports still use Doom's original 2 channel mixing, with typically only ZDoom based ports changing this since it started using FMOD (and later OpenAL) for the 3D sound positioning (even Odamex lacks this). This means that a lot of these systems still only support Doom audio files because it's the only thing that's immediately compatible. Maybe the occasional port can also support WAVs directly due to it being basically the same buffer, but other encoded formats are very unlikely to be supported this way for the majority of ports.

Edited by Edward850

Share this post


Link to post
1 hour ago, Edward850 said:

Most ports still use Doom's original 2 channel mixing...

 

I have found this to be a recurring issue with many ports of older games. While often a lot of attention is put into enhancing graphics - even if it is just going from 320x200 to 640x400 -, there is virtually no awareness how such old sound code can affect the experience if you connect something better to the computer than two cheap-o speakers with horrible sound reproduction.

 

GZDoom's sound system and Woof's new OpenAL backend are really lightyears ahead of the competition.

Share this post


Link to post
10 hours ago, Professor Hastig said:

there is virtually no awareness how such old sound code can affect the experience if you connect something better to the computer than two cheap-o speakers with horrible sound reproduction.

 

I have a suspicion that this is precisely the reason why good sound is not on the agenda for many developers. I have my computer connected to my 5.1 stereo system so these ancient 2 channel mixers immediately stand out, but I do not know many people who use real quality hardware for their sound playback.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...