Struct for WAVE file header.
WAV files definitions. Note that we only work with 1 channel, 2 bytes per sample FMT length 16, PCM format, standard header length (44 bytes). See Read_WAVHeader function within FileFunctions.c file and struct WAVHeader within this file.
More...
#include <defines.h>
Struct for WAVE file header.
WAV files definitions. Note that we only work with 1 channel, 2 bytes per sample FMT length 16, PCM format, standard header length (44 bytes). See Read_WAVHeader function within FileFunctions.c file and struct WAVHeader within this file.
Definition at line 251 of file defines.h.
◆ bits_per_sample
unsigned int WAVHeader::bits_per_sample |
bits per sample, 8 8bits, 16 16bits, ...
Definition at line 263 of file defines.h.
◆ block_align
unsigned int WAVHeader::block_align |
Number bytes for sample including all channels
Definition at line 262 of file defines.h.
◆ byte_rate
unsigned int WAVHeader::byte_rate |
(sample_rate * channels * bits_per_sample)/8
Definition at line 261 of file defines.h.
◆ bytes_per_sample
unsigned int WAVHeader::bytes_per_sample |
bytes_per_sample = bits_per_sample*channels/8
Definition at line 267 of file defines.h.
◆ channels
unsigned int WAVHeader::channels |
number of channels
Definition at line 259 of file defines.h.
◆ data_header
char WAVHeader::data_header[4] |
String "DATA" or "FLLR" string
Definition at line 264 of file defines.h.
◆ data_size
unsigned int WAVHeader::data_size |
Size of the data section
Definition at line 265 of file defines.h.
◆ fmt
String "fmt" with trailing null char
Definition at line 256 of file defines.h.
◆ fmt_length
unsigned int WAVHeader::fmt_length |
length of the format data
Definition at line 257 of file defines.h.
◆ format_type
unsigned int WAVHeader::format_type |
format type. 1 PCM, 3 IEEE float, ...
Definition at line 258 of file defines.h.
◆ num_samples
long WAVHeader::num_samples |
num_samples = data_size / block_align
Definition at line 266 of file defines.h.
◆ riff
◆ sample_rate
unsigned int WAVHeader::sample_rate |
sampling rate (samples per second or Hertz)
Definition at line 260 of file defines.h.
◆ size
unsigned int WAVHeader::size |
overall size of file in bytes
Definition at line 254 of file defines.h.
◆ wave
The documentation for this struct was generated from the following file: