FFmpegfs Fuse Multi Media Filesystem 2.16
List of all members
WAV_HEADER Struct Reference

WAVE header structure. More...

#include <wave.h>

Public Attributes

std::array< uint8_t, 4 > m_riff_header
 RIFF Header: Contains the letters "RIFF" in ASCII form (0x52494646 big-endian form). More...
 
uint32_t m_wav_size
 
std::array< uint8_t, 4 > m_wave_header
 Contains the letters "WAVE" (0x57415645 big-endian form). More...
 
std::array< uint8_t, 4 > m_fmt_header
 RIFF Format Header: Contains "fmt " including trailing space (0x666d7420 big-endian form). More...
 
uint32_t m_fmt_chunk_size
 Should be 16 for PCM This is the size of the rest of the chunk size which follows this number. More...
 
uint16_t m_audio_format
 Should be 1 for PCM. 3 for IEEE Float. More...
 
uint16_t m_num_channels
 Number of channels 1...n (1: mono, 2: stereo/dual channel;...) More...
 
uint32_t m_sample_rate
 8000, 44100, etc. More...
 
uint32_t m_byte_rate
 Number of bytes per second. sample_rate * num_channels * bit_depth / 8. More...
 
uint16_t m_sample_alignment
 num_channels * bit_depth / 8 More...
 
uint16_t m_bit_depth
 Number of bits per sample: 8 bits = 8, 16 bits = 16, etc. More...
 

Detailed Description

WAVE header structure.

Note
All numeric values are in big-endian format.

Definition at line 49 of file wave.h.

Member Data Documentation

◆ m_audio_format

uint16_t WAV_HEADER::m_audio_format

Should be 1 for PCM. 3 for IEEE Float.

Definition at line 70 of file wave.h.

Referenced by FFmpeg_Transcoder::create_fake_wav_header().

◆ m_bit_depth

uint16_t WAV_HEADER::m_bit_depth

Number of bits per sample: 8 bits = 8, 16 bits = 16, etc.

Definition at line 75 of file wave.h.

◆ m_byte_rate

uint32_t WAV_HEADER::m_byte_rate

Number of bytes per second. sample_rate * num_channels * bit_depth / 8.

Definition at line 73 of file wave.h.

◆ m_fmt_chunk_size

uint32_t WAV_HEADER::m_fmt_chunk_size

Should be 16 for PCM This is the size of the rest of the chunk size which follows this number.

Definition at line 69 of file wave.h.

◆ m_fmt_header

std::array<uint8_t, 4> WAV_HEADER::m_fmt_header

RIFF Format Header: Contains "fmt " including trailing space (0x666d7420 big-endian form).

Definition at line 68 of file wave.h.

◆ m_num_channels

uint16_t WAV_HEADER::m_num_channels

Number of channels 1...n (1: mono, 2: stereo/dual channel;...)

Definition at line 71 of file wave.h.

◆ m_riff_header

std::array<uint8_t, 4> WAV_HEADER::m_riff_header

RIFF Header: Contains the letters "RIFF" in ASCII form (0x52494646 big-endian form).

Definition at line 52 of file wave.h.

◆ m_sample_alignment

uint16_t WAV_HEADER::m_sample_alignment

num_channels * bit_depth / 8

Definition at line 74 of file wave.h.

◆ m_sample_rate

uint32_t WAV_HEADER::m_sample_rate

8000, 44100, etc.

Definition at line 72 of file wave.h.

◆ m_wav_size

uint32_t WAV_HEADER::m_wav_size

Size of the wav portion of the file, which follows the first 8 bytes (File size - 8).
36 + fmt_chunk_size, or more precisely:
4 + (8 + fmt_chunk_size) + (8 + fmt_chunk_size) This is the size of the rest of the chunk following this number. This is the size of the entire file in bytes minus 8 bytes for the two fields not included in this count: riff_header and wav_size.

Definition at line 63 of file wave.h.

Referenced by FFmpeg_Transcoder::create_fake_wav_header().

◆ m_wave_header

std::array<uint8_t, 4> WAV_HEADER::m_wave_header

Contains the letters "WAVE" (0x57415645 big-endian form).

Definition at line 64 of file wave.h.


The documentation for this struct was generated from the following file: