This article's documentation is for the "GoldSrc" engine. Click here for more information.

Supported sample rates

From Valve Developer Community
Jump to: navigation, search

English (en)Русский (ru)
Edit
Obsolete-notext.pngDeprecated:Source is picky; it probably only supports reading from sound files at 44100 Hz, 22050 Hz, and 11025 Hz.
It might support 24000 Hz files, as that's what voice chat uses, but that's unlikely.
Note.pngNote:Source 2 is significantly less picky, and should support any sample rate that the MP3 format officially supports.

Source complained when I tried to feed it a 32 KHz ADPCM file, so I decided to document my findings.

16-bit WAV 8-bit WAV MS_ADPCM WAV MP3 Quality Notes
8000 Hz ? ? ? ? Telephone Quality
11025 Hz ? ✔️ ? ? 1/4 CD Quality used by Half-Life 1 sound effects
12000 Hz ? ? ? ? 1/4 DVD Quality
16000 Hz ? ? ? ? 1/3 DVD Quality
22050 Hz ✔️ ✔️ ✔️ ? 1/2 CD Quality Max sample rate for GoldSrc WAV files
24000 Hz ? ? ? ? ½ DVD Quality Default voice chat sample rate for Source 1
32000 Hz ? ? X ? 2/3 DVD quality Nintendo's favorite
maximum sample rate most people can discern
44100 Hz ✔️ ? ✔️ ✔️ CD Quality max sample rate for Source 1
48000 Hz X X X X DVD Quality not supported by vanilla Source 1