WAV: Difference between revisions
SirYodaJedi (talk | contribs) (surround sound and source 2) |
SirYodaJedi (talk | contribs) m (why someone would end up with a BWF WAV instead of a regular WAV) |
||
Line 5: | Line 5: | ||
{{src|4}} 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. | {{src|4}} 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. | ||
{{modernBug|Files using the extended [[Wikipedia:Broadcast Wave Format|Broadcast Wave Format (BWF)]] have weird behavior in Source, and should be converted to regular WAV using FFMpeg or Audacity before use in-game.}} | {{modernBug|Files using the extended [[Wikipedia:Broadcast Wave Format|Broadcast Wave Format (BWF)]] have weird behavior in Source, and should be converted to regular WAV using FFMpeg or Audacity before use in-game. Some audio editors export as BWF automatically, such as Pro Tools and Logic Pro, and do not provide an option to export a standard WAV.}} | ||
{{modernWarning|Although the WAV format specifications permit up to 32 channels in a single file, and {{src}} supports surround sound, {{src}} does '''''not''''' support WAV files with more than 2 channels!}} | {{modernWarning|Although the WAV format specifications permit up to 32 channels in a single file, and {{src}} supports surround sound, {{src}} does '''''not''''' support WAV files with more than 2 channels!}} | ||
{{ModernTodo|What about {{src2|4}}?}} | {{ModernTodo|What about {{src2|4}}?}} |
Revision as of 11:37, 17 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 is a table with the bitrates of mono WAV files; double the values below for stereo WAV files.