CSS Sound format explained

Welcome my good friends! :)

So you have a sound, and it won't play in css for some unknown reason? Then look no further!

If you know a little about sound for the source engine, you'll know that the sound has to be in the .wav format (*unless it is a piece of music, in which case, an mp3 format): yeah it's preeeetty obvious to us :)

...But! What isn't so obvious, is that the .wav format has a sort of format type within it! so do all audio files in fact. These special 'format within a format' are not uncommon, in fact, every audio file you have come across is saved as a 'format within a format'.

Basically, Css sounds have to be saved within these .wav file parametres:

Wave PCM (Signed or unsigned)

8 Bit or 16 Bit

Mono or Stereo

44,100 Hertz or Less

To save the .wav (or any other sound type) with these preferences:

  1. Open Goldwave

  2. Locate and open the sound

  3. In the top (File Edit Effect etc) go to Effect > Resample

A box like this should open up

If your sound is higher than 44,100 Hertz, then Lower it to 44,100 Hertz or less (a lower number will result in a less 'detailed' sound (think of an image's resoloution - higher = better quality, same scenario with the fidelity/amount of Hertz)

If your sound is less than 44,100 Hertz (16,000 Hertz, 22,050 Hertz and 32,000 Hertz are the most common rates of Hertz after 44,100 Hertz) then don't change it to 44,100 or any higher than the original sound, unless you want to waste space: why? Because the wav is being allocated more space, but it doesn't affect the quality, so basically it's wasting space.

  1. Click 'Ok'

  2. At the top go to File > Save as

Now the settings should be so: File name: This is the name of the file.

Save as type: This should always be 'Wave (*.wav)'

Attributes: Here's what I was talking about earlier. Scroll up to the top and choose one of these formats (The list is ordered from the worst sounding to the best sounding) - PCM Unsigned 8 Bit Mono - PCM Unsigned 8 Bit Stereo - PCM Signed 16 Bit Mono - PCM Signed 16 Bit Stereo

Anything other than these formats will not be played by Counter-Strike Source. This is the case with all source games

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Tutorial.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Tutorial a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Tutorial.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

Comments

  • MosquitoPower's Levels
    • P1: Beggar
      Points: 154
    • C1: Member
    • A4: Graduate
      Account Age: 3 years
    Posted 3 years ago

    Hi Steve, I followed your tutorial steps, but I have got a sound file which can't play. The files link : http://www.fpsbanana.com/sounds/4457 . Media is in .mp3 format. I checked and followed all your instructions. Please help me!

    User Title
    FEEL THE WRATH OF MOSQUITO
  • Faffout's Levels
    • P4: Worker
      Points: 31,021
    • E2: Guide
      EF: 37
    • C1: Member
    • A4: Graduate
      Account Age: 3 years
    Posted 3 years ago

    Lol, okay. Then put that 8 bit mono and everything below 44,100 Hz isn't recommended because it'd reduce the sound quality.

  • :. Steve-o .:'s Levels
    • P3: Peasant
      Points: 18,431
    • E1: Helper
      EF: 8
    • C1: Member
    • A5: Veteran
      Account Age: 6 years
    Posted 3 years ago
    Posted by MingeKiller Awesome and useful though i just have to point out that a lot of people know this already.

    Eh, well I didn't at first so I thought It'd help some people out.

    Posted by MingeKiller 16 Bit, Stereo, 44,100 Hertz are the highest possible quality of sounds for Source so let's just not tell people the other sound qualities.

    That's misinformation, which is baaaad :P

    User Title
  • Faffout's Levels
    • P4: Worker
      Points: 31,021
    • E2: Guide
      EF: 37
    • C1: Member
    • A4: Graduate
      Account Age: 3 years
    Posted 3 years ago

    Awesome and useful though i just have to point out that a lot of people know this already.

    .....8 Bit .....Mono .....or Less

    Remove these. They DO work in Source but they have really bad quality and it could make people start releasing sounds that are 8 bit mono or less than 44,100 Hertz.

    16 Bit, Stereo, 44,100 Hertz are the highest possible quality of sounds for Source so let's just not tell people the other sound qualities.

  • TheImpure's Levels
    • C1: Member
    • A5: Veteran
      Account Age: 4 years
    Posted 3 years ago

    Thanks man, very useful tut. it helped me with my radio sound problems. keep up the good work.

    Those Who Don't Die, End Up In

Credits

Submitter
:. Steve-o .:'s Levels
  • P3: Peasant
    Points: 18,431
  • E1: Helper
    EF: 8
  • C1: Member
  • A5: Veteran
    Account Age: 6 years
:. Steve-o .: (Creator/Co-creator)
Key Authors
Lowpass / Dead-Aim / Steve
I discovered it

Rating

9.3/10
Based off 1 rating(s)

Additional Info

Genre
Sound Effects & Music
Difficulty Level
Intermediate

Stats

Post Count
5
ViewCount
2,035
Date Added
3 years ago
Date Modified
3 years ago

Share

Embed Code
Code to use:

More embeddable images

Bookmark and Share