WAV: Difference between revisions
SirYodaJedi (talk | contribs) m (→Bit rates: mention MP3) |
SirYodaJedi (talk | contribs) m (→Bit rates: add stereo bitrates) |
||
Line 10: | Line 10: | ||
== Bit rates == | == Bit rates == | ||
WAV files have a consistent bitrate depending upon their sample rate, bit depth, and channel count. The following | WAV files have a consistent bitrate depending upon their sample rate, bit depth, and channel count. The following tables indicate what bitrates files will be at supported sample rates. | ||
{{modernTip|'''<nowiki>Bitrate = Sample Rate * Bit Depth * Channel Count</nowiki>'''}} | |||
'''Mono sounds (1 channel)''' | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 20: | Line 22: | ||
! 11025 Hz | ! 11025 Hz | ||
| 176.4 kbps || 88.2 kbps || 44.1 kbps | | 176.4 kbps || 88.2 kbps || 44.1 kbps | ||
| | | AM radio; used by most {{hl1}} sound effects | ||
|- | |- | ||
! 22050 Hz | ! 22050 Hz | ||
Line 31: | Line 33: | ||
|- | |- | ||
|} | |} | ||
{{ | |||
'''Stereo sounds (2 channels) {{goldsrc|not}}''' | |||
{| class="wikitable" | |||
|- | |||
! Sample Rate | |||
! 16-bit PCM !! 8-bit PCM !! 4-bit ADPCM | |||
! Quality | |||
|- | |||
! 11025 Hz | |||
| 352.8 kbps || 176.4 kbps || 88.2 kbps | |||
| AM radio | |||
|- | |||
! 22050 Hz | |||
| 705.6 kbps || 352.8 kbps || 176.4 kbps | |||
| | |||
|- | |||
! 44100 Hz | |||
| 1411.2 kbps || 705.6 kbps || 352.8 kbps | |||
| CD quality | |||
|- | |||
|} | |||
{{modernTip|{{src|only|addtext={{src2}}}}} If lower file sizes are desired, [[MP3]] files can also be used in some situations.}} | {{modernTip|{{src|only|addtext={{src2}}}}} If lower file sizes are desired, [[MP3]] files can also be used in some situations.}} |
Revision as of 12:38, 19 May 2023
Waveform Audio File Format is an audio format with a .wav file extension, used by all of Valve's engines. It is required for lipsynced dialogue and looped sounds without a custom audio backend.
GoldSrc supports uncompressed 8-bit or 16-bit PCM, although lip-synched audio must be 8-bit. It supports sample rates of 11025 Hz or 22050 Hz; other sample rates can sometimes be used, but they will be resampled to 22050 Hz before playback.
Source supports uncompressed 8-bit and 16-bit PCM, as well as compressed 4-bit Microsoft ADPCM. It supports sample rates at 11025 Hz, 22050 Hz, and 44100 Hz; files at other sample rates, such as 32000 Hz, will not play.
Template:ModernBug Template:ModernWarning Template:ModernTodo
Bit rates
WAV files have a consistent bitrate depending upon their sample rate, bit depth, and channel count. The following tables indicate what bitrates files will be at supported sample rates.
Template:ModernTip Mono sounds (1 channel)
Stereo sounds (2 channels) (not in )
Sample Rate | 16-bit PCM | 8-bit PCM | 4-bit ADPCM | Quality |
---|---|---|---|---|
11025 Hz | 352.8 kbps | 176.4 kbps | 88.2 kbps | AM radio |
22050 Hz | 705.6 kbps | 352.8 kbps | 176.4 kbps | |
44100 Hz | 1411.2 kbps | 705.6 kbps | 352.8 kbps | CD quality |