Skip to content

struct audiofile_format audio

struct audiofile_format { … }

Represents the format of an audio file.

variable container

Container format.

Defined at audio/data.hpp:362

variable codec

audiofile_codec codec           = audiofile_codec::unknown

Audio codec.

Defined at audio/data.hpp:363

variable endianness

Endianness of the audio data.

Defined at audio/data.hpp:364

variable bit_depth

uint8_t bit_depth               = 0

Bits per sample.

Defined at audio/data.hpp:365

variable channels

uint32_t channels            = 0

Number of channels.

Defined at audio/data.hpp:367

variable sample_rate

uint32_t sample_rate         = 0

Sample rate in Hz.

Defined at audio/data.hpp:368

variable speakers

Speaker arrangement.

Defined at audio/data.hpp:369

variable total_frames

uint64_t total_frames = 0

Defined at audio/data.hpp:371

variable metadata

metadata_map metadata

Key-value metadata pairs.

Defined at audio/data.hpp:372

function bytes_per_pcm_frame()

size_t bytes_per_pcm_frame() const noexcept

Defined at audio/data.hpp:374

function valid()

bool valid() const noexcept

Defined at audio/data.hpp:376

function sample_type()

audio_sample_type sample_type() const

Defined at audio/data.hpp:378

function sample_type_lpcm()

audio_sample_type sample_type_lpcm() const

Defined at audio/data.hpp:379

function operator==(const audiofile_format &)

bool operator==(const audiofile_format& other) const noexcept = default

Defined at audio/data.hpp:381

Defined at audio/data.hpp:360