Audio Processing¶
Audio-specific processing, codecs, and format handling.
A¶
enum constantaudiofile_container::aiffstructaiff_decoding_options Options for decoding AIFF audio files.structaiff_encoding_options Represents options for AIFF audio encoding.enum constantaudiofile_codec::alacfunctionaudio_data<IsInterleaved>::append(const audio_data<IsInterleaved> &) Appends samples from a buffer with the opposite layout.typedefaudio_data_interleaved Alias for audio_data with interleaved storage.typedefaudio_data_planar Alias for audio_data with planar (non-interleaved) storage format.classaudio_data<IsInterleaved> Contiguous audio buffer with optional interleaving.constructoraudio_data<IsInterleaved>::audio_data<IsInterleaved>()constructoraudio_data<IsInterleaved>::audio_data<IsInterleaved>(audio_data<IsInterleaved> &&)constructoraudio_data<IsInterleaved>::audio_data<IsInterleaved>(const audio_data<!IsInterleaved> &) Converts between planar and interleaved layouts.constructoraudio_data<IsInterleaved>::audio_data<IsInterleaved>(fbase *, size_t, size_t) Constructs an interleaved audio_data view from an external buffer.functionaudio_data<IsInterleaved>::audio_data<IsInterleaved>(fbase *, size_t, size_t, Fn &&) Constructs an interleaved audio_data view from an external buffer with a custom deallocator.constructoraudio_data<IsInterleaved>::audio_data<IsInterleaved>(size_t, size_t) Constructs an audio_data buffer with the specified channel count and optional initial size.constructoraudio_data<IsInterleaved>::audio_data<IsInterleaved>(size_t, size_t, fbase) Constructs an audio buffer and initializes all samples to a constant value.constructoraudio_data<IsInterleaved>::audio_data<IsInterleaved>(std::span<fbase *const>, size_t) Constructs a planar audio_data view from external channel pointers.functionaudio_data<IsInterleaved>::audio_data<IsInterleaved>(std::span<fbase *const>, size_t, Fn &&) Constructs a planar audio_data view from external channel pointers with a custom deallocator.structaudio_decoder Abstract base class for audio decoders providing methods for opening and reading audio files.destructoraudio_decoder::~audio_decoder()constructoraudio_decoder::audio_decoder()structaudio_decoding_options Options for generic audio decoding.enumaudio_dithering Supported audio dithering methods.structaudio_dithering_state Represents the state of audio dithering.structaudio_encoder Abstract base class for audio encoders, providing methods for opening, writing, and closing audio files.destructoraudio_encoder::~audio_encoder() Destructor to close and finalize file encoding.structaudio_encoding_options Represents options for audio encoding, including dithering settings.structaudio_quantization Represents audio quantization parameters.constructoraudio_quantization::audio_quantization(int, audio_dithering) Constructs quantization parameters for the given bit depth and dithering method.structaudio_stat Represents audio statistics such as peak and RMS values.variableaudio_writing_software Software string to write into metadata, if supported by formatenumaudiofile_codec Supported audio file codecs.enumaudiofile_container Supported audio file container formats.functionaudiofile_container_from_extension(std::string_view) Determines the audio container type from a file extension.enumaudiofile_endianness Endianness of audio data.structaudiofile_format Represents the format of an audio file.typedefaudiofile_header Represents a fixed-size audio file header.
B¶
enum constantaudiofile_endianness::bigvariableaudiofile_format::bit_depth Bits per sample.enum constantaudiofile_container::bw64 BW64 as per EBU Tech 3285 v2 (no metadata support yet)functionaudiofile_format::bytes_per_pcm_frame()
C¶
enum constantaudiofile_container::caf Apple CAFstructcaff_decoding_options Options for decoding CAFF audio files.structcaff_encoding_options Represents options for CAFF audio encoding.variableaudio_data<IsInterleaved>::capacity Allocated capacity per channel.typedefchan Determines the channel type based on interleaving.functionaudio_data<IsInterleaved>::channel_count() Retrieves the number of audio channels.variableaudiofile_format::channels Number of channels.variableaudio_data<IsInterleaved>::channels Number of channels.functionaudio_data<IsInterleaved>::channel(size_t) Retrieves a reference to the audio data of a specific channel.functionaudio_data<IsInterleaved>::clear() Clears all audio data, leaving the container empty (size == 0).functionaudio_decoder::close() Closes the audio file and releases resources.functionaudio_encoder::close() Closes the encoder and finalizes the file.variableaudiofile_format::codec Audio codec.variableaudiofile_format::container Container format.functioncreate_aiff_decoder(const aiff_decoding_options &) Creates a decoder for AIFF audio files.functioncreate_aiff_encoder(const aiff_encoding_options &) Creates an AIFF audio encoder with optional encoding options.functioncreate_caff_decoder(const caff_decoding_options &) Creates a decoder for CAFF audio files.functioncreate_caff_encoder(const caff_encoding_options &) Creates a CAFF audio encoder with optional encoding options.functioncreate_decoder_for_container(audiofile_container, const audio_decoding_options &) Creates an audio decoder for a specific container type.functioncreate_decoder_for_file(const file_path &, const audio_decoding_options &) Creates an audio decoder for a file.functioncreate_decoder_from_header(const audiofile_header &, const audio_decoding_options &) Creates an audio decoder from a file header.functioncreate_encoder_for_container(audiofile_container, const audio_encoding_options &) Creates an audio encoder for the specified container format with optional encoding options.functioncreate_flac_decoder(const flac_decoding_options &) Creates a decoder for FLAC audio files.functioncreate_flac_encoder(const flac_encoding_options &) Creates a FLAC audio encoder with optional encoding options.functioncreate_mp3_decoder(const mp3_decoding_options &) Creates an MP3 audio decoder with the specified decoding options.functioncreate_raw_decoder(const raw_decoding_options &) Creates a decoder for raw audio streams.functioncreate_raw_encoder(const raw_encoding_options &) Creates a raw audio encoder with optional encoding options.functioncreate_w64_decoder(const w64_decoding_options &) Creates a decoder for W64 audio files.functioncreate_w64_encoder(const w64_encoding_options &) Creates a W64 audio encoder with optional encoding options.functioncreate_wave_decoder(const wave_decoding_options &) Creates a decoder for WAVE audio files.functioncreate_wave_encoder(const wave_encoding_options &) Creates a WAVE audio encoder with optional encoding options.
D¶
variablestrided_channel<T>::data Pointer to the first sample of the channel.variableaudio_data<IsInterleaved>::data Pointers to channel data.variableaudio_data<IsInterleaved>::deallocator Deallocator for the data.functiondecode_audio_file(const file_path &, audiofile_format *, const audio_decoding_options &) Decodes an audio file and returns the audio data in an interleaved format.variableexpression_traits<strided_channel<T>>::dimsvariableaudio_dithering_state::distvariableaudio_quantization::dither Dithering state used during quantization.variableaudio_dithering_state::dithering Active dithering method.variableaudio_encoding_options::dithering
E¶
functionaudio_data<IsInterleaved>::empty() Check whether this audio data container is empty.functionencode_audio_file(const file_path &, const audio_data_interleaved &, const audiofile_format &, audio_decoder *, const audio_encoding_options &) Encodes interleaved audio data and writes it to a file.functionencode_audio_file(const file_path &, const audio_data_planar &, const audiofile_format &, audio_decoder *, const audio_encoding_options &) Encodes planar audio data and writes it to a file.variableaudiofile_format::endianness Endianness of the audio data.classexpression_traits<strided_channel<T>>
F¶
functionaudio_data<IsInterleaved>::fill(fbase) Fills the audio data with the specified value.functionaudio_data<IsInterleaved>::find_peak()enum constantaudiofile_container::flac FLACenum constantaudiofile_codec::flacstructflac_decoding_options Options for decoding FLAC audio files.structflac_encoding_options Represents options for FLAC audio encoding.functionaudio_data<IsInterleaved>::for_channel(Fn &&) Applies a given function to the audio data for each channel.functionaudio_decoder::format() Retrieves the format of the currently opened audio file.variableraw_decoding_options::formatfunctionaudio_encoder::format() Retrieves the current audio file format.
G¶
functionget_elements(const strided_channel<T> &, const shape<1> &, const axis_params<0, N> &)functionexpression_traits<strided_channel<T>>::get_shape()functionexpression_traits<strided_channel<T>>::get_shape(const strided_channel<T> &)
H¶
functionaudio_decoder::has_chunk(std::span<const std::byte>) Checks if the file contains a chunk with the specified ID.
I¶
enum constantaudiofile_codec::ieee_floatfunctionaudio_data<IsInterleaved>::interlaved() Returns a reference to the interleaved audio data.functionaudio_data<IsInterleaved>::is_silent(fbase) Checks whether all samples in the buffer are effectively silent within a given amplitude threshold.functionis_single_codec(audiofile_container) Checks if a container supports a single codec.
L¶
functionlibrary_version_audio() Returns the full version string of the KFR audio module.functionlibrary_version_codecs() Returns a comma-separated list of enabled audio codecs.enum constantaudiofile_endianness::littleenum constantaudiofile_codec::lpcm
M¶
variableaudio_decoder::m_formatvariableaudio_encoder::m_formatvariableaudio_decoder::m_readervariableaudio_encoder::m_writervariablemax_audio_channels Maximum number of channels in audio data.variableaudiofile_format::metadata Key-value metadata pairs.typedefmetadata_map Metadata map for storing key-value pairs.enum constantaudiofile_container::mp3 MPEG audioenum constantaudiofile_codec::mp3structmp3_decoding_options Options for decoding MP3 audio files.functionaudio_data<IsInterleaved>::multiply(fbase) Multiplies the audio data by a specified scalar value.
N¶
enum constantaudio_dithering::none
O¶
functionaudio_decoder::open(const file_path &) Opens an audio file from a file path and retrieves its format.functionaudio_encoder::open(const file_path &, const audiofile_format &, audio_decoder *) Opens the encoder with a file path and format.functionaudio_decoder::open(std::shared_ptr<binary_reader>) Opens an audio file using a binary reader and retrieves its format.functionaudio_encoder::open(std::shared_ptr<binary_writer>, const audiofile_format &, audio_decoder *) Opens the encoder with a binary writer and format.functionaudio_dithering_state::operator()() Generates one dither sample according to the configured method.functionaudio_data<IsInterleaved>::operator=(audio_data<IsInterleaved> &&)functionaudio_data<IsInterleaved>::operator==(const audio_data<IsInterleaved> &)functionaudio_data<IsInterleaved>::operator=(const audio_data<IsInterleaved> &)functionaudiofile_format::operator==(const audiofile_format &)
P¶
variableaudio_stat::peak Peak absolute sample value across all channels.functionaudio_data<IsInterleaved>::pointers() Retrieves an array of pointers to the base type of the audio data.variableaudio_data<IsInterleaved>::position Position of the first sample in the audio data.functionaudio_data<IsInterleaved>::prepend(const audio_data<IsInterleaved> &) Prepends samples from a buffer with the opposite layout.
R¶
structraw_decoding_options Options for decoding raw audio streams.structraw_encoding_options Represents options for raw audio encoding.functionaudio_decoder::read_all() Reads the entire audio stream into an interleaved buffer.functionaudio_decoder::read_all_planar() Reads the entire audio stream into a planar buffer.functionread_audiofile_header(const file_path &) Reads the header of an audio file.functionaudio_decoder::read_buffered(const audio_data_interleaved &, const std::function<expected<audio_data_interleaved, audiofile_error> ()> &, audio_data_interleaved &) Reads audio frames into a buffer using a custom read function.functionaudio_decoder::read_chunk_bytes(std::span<const std::byte>) Reads a RIFF chunk into a byte vector.functionaudio_decoder::read_chunk(std::span<const std::byte>, const std::function<bool (std::span<const std::byte>)> &, size_t) Reads a RIFF chunk by its identifier.variableaudio_decoding_options::read_metadata Whether to read metadata tags during decoding.functionaudio_decoder::read_to(const audio_data_interleaved &) Reads audio frames into an interleaved buffer.functionaudio_decoder::reader() Retrieves the binary reader associated with the decoder.functionaudio_decoder::read(size_t) Reads up to a maximum number of audio frames into a newly allocated buffer.enum constantaudio_dithering::rectangularfunctionaudio_data<IsInterleaved>::reserve(size_t) Increases the allocated capacity, preserving existing samples.functionaudio_data<IsInterleaved>::reset() Resets the object to its default state.functionaudio_data<IsInterleaved>::resize(size_t) Resizes the container to hold exactly new_size elements.functionaudio_data<IsInterleaved>::resize(size_t, fbase) Resize to the specified length and initialize newly added samples.enum constantaudiofile_container::rf64 RF64 by EBUvariableaudio_stat::rms Root mean square of all samples across all channels.variableaudio_dithering_state::rnd Random number generator.
S¶
variableaudiofile_format::sample_rate Sample rate in Hz.functionaudiofile_format::sample_type()functionaudiofile_format::sample_type_lpcm()functionsamples_load(audio_sample_type, fbase *const *, const std::byte *, size_t, size_t, bool) Loads interleaved audio samples based on sample type.functionsamples_load(audio_sample_type, fbase *, const std::byte *, size_t, bool) Loads audio samples based on sample type.functionsamples_load(fbase *const *, const Tin *, size_t, size_t, bool) Loads interleaved audio samples into a planar floating-point buffer.functionsamples_load(fbase *, const Tin *, size_t, bool) Loads audio samples into a floating-point buffer.functionsamples_store(audio_sample_type, std::byte *, const fbase *const *, size_t, size_t, bool) Stores interleaved audio samples based on sample type.functionsamples_store(audio_sample_type, std::byte *, const fbase *const *, size_t, size_t, const audio_quantization &, bool) Stores interleaved audio samples based on sample type with quantization.functionsamples_store(audio_sample_type, std::byte *, const fbase *, size_t, const audio_quantization &, bool) Stores audio samples based on sample type with quantization.functionsamples_store(Tout *, const fbase *const *, size_t, size_t, bool) Stores planar floating-point samples into a interleaved buffer.functionsamples_store(Tout *, const fbase *const *, size_t, size_t, const audio_quantization &, bool) Stores planar floating-point samples into an interleaved buffer with quantization.functionsamples_store(Tout *, const fbase *, size_t, const audio_quantization &, bool) Stores floating-point samples into a buffer with quantization.variableaudio_dithering_state::scale Amplitude scale applied to the generated noise.functionaudio_decoder::seek_is_precise() Determines whether seeking is precise for this decoder.functionaudio_decoder::seek(uint64_t) Seeks to a specific sample position in the audio stream.functionset_elements(strided_channel<T> &, const shape<1> &, const axis_params<0, N> &, const std::type_identity_t<vec<T, N>> &)variablestrided_channel<T>::size Number of samples in the channel.variableaudio_data<IsInterleaved>::size Number of samples per channel.functionaudio_data<IsInterleaved>::slice_past_end(size_t) Creates a new audio_data object representing a slice of audio data starting past the end of the current data.functionaudio_data<IsInterleaved>::slice(size_t, size_t) Creates a slice of the audio data starting at a specified position and with a specified length.variableaudiofile_format::speakers Speaker arrangement.functionaudio_data<IsInterleaved>::stat() Retrieves the statistical information of the audio data.variablestrided_channel<T>::stride Stride (in elements) between successive samples.classstrided_channel<T> Represents a strided audio channel.functionaudio_data<IsInterleaved>::swap(audio_data<IsInterleaved> &) Exchanges the contents of this buffer withother.functionaudio_data<IsInterleaved>::swap(audio_data<IsInterleaved> &, audio_data<IsInterleaved> &) Swaps two audio_data buffers.variablewave_encoding_options::switch_to_rf64_if_over_4gb
T¶
variableaudiofile_format::total_framesfunctionaudio_data<IsInterleaved>::total_samples() Calculates the total number of audio samples.enum constantaudio_dithering::triangularfunctionaudio_data<IsInterleaved>::truncate(size_t) Truncates the audio data to the specified length.
U¶
enum constantaudiofile_container::unknownenum constantaudiofile_codec::unknown
V¶
W¶
enum constantaudiofile_container::w64 Sony WAVE64structw64_decoding_options Options for decoding W64 audio files.structw64_encoding_options Represents options for W64 audio encoding.enum constantaudiofile_container::wave RIFF WAVEstructwave_decoding_options Options for decoding WAVE audio files.structwave_encoding_options Represents options for WAVE audio encoding, including RF64 support for large files.functionaudio_encoder::write(const audio_data_interleaved &) Writes a chunk of interleaved audio data to the encoder.functionaudio_encoder::writer() Retrieves the binary writer associated with the encoder.
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.