MP3 MP3 MP3 WAV WAV

Introduction to the WAV format

WAV format (a contraction of "WAVEform audio format") is a digital audio data storage standard defined by Microsoft and IBM.

It is probably the most widely used sound storage format, as it is the default sound format in the operating system Microsoft Windows.

The WAV format is not actually an encoding format, but an audio container format. WAV files is based around the RIFF (Resource Interchange File Format) standard, which defines a structure for storing multimedia data.

Therefore, a WAV file may contain

Structure

The WAV format defines a data structure for gathering audio data in the form of chunks. The data structure is nested, like Russian dolls.

The overall structure of the file is:

Address (byte) Name Size (bytes) Description
00h rID 4h Word "RIFF"
04h rLen 4h Chunk size
08h rData rLen Data Chunk

The rData segment contains the chunk, encoded as follows:

Address (byte) Name Size (bytes) Description
00h wID 4 Term "WAVE"
04h Chunk format 18 Format used
1Ch WAVE Data Chunk ? Data
Chunk format:
Shift (byte) Name Size (bytes) Description
00h fId 4 Term "fmt " (the space is necessary)
04h fLen 4 ?
08h wFormatTag 2 Format (generally 1, for Microsoft Pulse Code Modulation)
0Ah nChannels 2 Number of channels (1=mono, 2=stereo)
0Ch nSamplesPerSec 4 Sampling rate (in Hz)
10h nAvgBytesPerSec 4 nChannels * nSamplesPerSec * (nBitsPerSample/8)
For estimating the needed buffer size
14h nBlockAlign 2 nChannels * (nBitsPerSample / 8)
For buffer alignment
16h FormatSpecific 2 Sample length, in bits (8 or 16)
WAVE Data Chunk:
Address (byte) Name Size (bytes) Description
00h dId 4 Term "data"
04h dLen 4 Length of dData field (in bytes)
08h dData dLen Sampled sound data

The dData field is formatted as follows:

  • In 8-bit mono: Each byte represents a sample
  • In 8-bit stereo: 2 bytes for each sample (left channel, right channel),
  • In 16-bit mono each word (low byte, high byte) represents a sample
  • In 16 bit stereo: 2 word for each sample (lower left, upper left, lower right, upper right)


Last update on Thursday October 16, 2008 02:43:15 PM.This document entitled « WAV » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.
Best answers for « WAV » in :
Download Switch Sound Format Converter Show A converter of audio formats for Windows or Mac, capable of converting audio files from various formats in MP3 or in WAV, notably WAV in MP3, MP3 in WAV, WMA in MP3, MP3 towards WAM Switchest, etc. Add files to be converted to the list, select...
Convert Mp3 to Wav Show Convert Mp3 to Wav To convert an Mp3 to Wav file, here are some free tools to be used Free Mp3 Wma Converter: http://en.kioskea.net/telecharger/telecharger 132 free mp3 wma converter MediaCoder:...
CONVERT WAV, AVI, MPEG TO 3GP / 3GPP FORMATS ShowCONVERT WAV, AVI, MPEG TO 3GP/3GPP FORMATS To convert a WAV file, AVI, MPEG or MP3 to 3GP format, simply use one of the following software: Mobile 3GP Converter MediaCoder Super Factory Format You can also use this online...
Converting MIDI files to MP3 or WAV ShowConverting MIDI files to MP3 or WAV MidiMeow MIDI to MP3 Maker You just have to use these softwares below: MidiMeow Link: http://meow-prod.com/midi_to_wav_ogg_mp3_converter_en.html MIDI to MP3 Maker Link:...
Convert your .midi file to MP3 OR WAV ShowConvert your .midi file to MP3 OR WAV The software MidiMeov is one of the most reliable software for converting your MIDI file to MP3 format or WAV Download link: http://meow-prod.com/midi_to_wav_ogg_mp3_converter_en.html MIDI...
Download Tutu MP3 WAV Converter ShowTutu MP3 WAV Converter is a tool that enables you to convert MP3 to Wav or WAV to MP3 quickly. Simple and easy to use, the application allows you to set options for conversion. The application supports encoding for MP3, WAV codec. Features The...
Creating an audio CD from an MP3 ShowWhat is an MP3 file An MP3 file is a compressed audio file, i.e., a file that takes up less disk space due to a compression algorithm, and which can be read by programs that execute decompression algorithms. Legality The MP3 format is not illegal,...
MIME (Multipurpose Internet Mail Extensions) ShowIntroduction to MIME MIME (Multipurpose Internet Mail Extensions) is a standard which was proposed by Bell Communications in 1991 in order to expand upon the limited capabilities of email, and in particular to allow documents (such as images,...