These fields are either strings, such as RIFF, or numerical values. The most important features are that the header is 44 bytes long and that it’s divided into fields of 2 or 4 bytes long. We’ll not get into the details of the header format as it has been well explained before (also here). Following it, we’ll have fields of either 4 or 2 bytes long that represent more information. The first 4 bytes are used to encode the characters RIFF, which refers to the container format used for wave files. The header information starts at the beginning of the wave file (byte offset 0). We’ll use the same names for the header fields as described in the soundfile++ library documentation. ![]() WAV headerįor this post, and the program implementation we’ll see below, we’ll concentrate on the simplest possible header format for wav files. You can access an overview of WAV file characteristics at VideoProc’s site. ![]() Then, we’ll see how to read this information with a program written in C. ![]() We’ll start by taking a look at the header’s format, and what data it stores. In this post, we’ll see how to access the information stored in the header of a wave file. WAV or WAVE is one of the most common audio file formats.
0 Comments
Leave a Reply. |