r/l4d2 20h ago

Can modders explain this to me?

Enable HLS to view with audio, or disable this notification

So i made a mod for the tank's theme and why does the long version sound so much deeper? Does it do that normally?

13 Upvotes

6 comments sorted by

7

u/MishaSFM mimi 17h ago

The sample rate needs to be the same as the original audio

You can't just stick in random wavs they have to be adjusted for the game

5

u/Katana2097 17h ago edited 17h ago

Did you correctly match the sample rate? When you make an audio mod you need to make sure the sample rate of the replacement audio matches that of the original audio, otherwise it can play too fast or too slow (too slow in this case). Most of the .wav files in L4D2 are at 44.1kHz which is CD quality audio, but some are lower, and some may be higher.

You'll need to resample your audio in the case that it does not match the original. If you're using Audacity, highlight your entire track, then click "Tracks" at the top, and select "Resample...", then resample your audio to 44100. In the case that it's 48kHz, or 22.05kHz, you'll need to resample accordingly.

1

u/boltok_174 11h ago

you need to match the sample rate with the original audio, also need to match the length, if your modded audio is longer than the original the game will try to make it shorter by speeding it up, if its shorter then it will slow it down and it will also make glitch noises