Group: audio¶
A¶
enum constantkfr::audiofile_error::abort Operation abortedenum constantkfr::audiofile_error::access_denied Access to the file was deniedenum constantkfr::audiofile_container::aiffstructkfr::aiff_decoding_options Options for decoding AIFF audio files.structkfr::aiff_encoding_options Represents options for AIFF audio encoding.enum constantkfr::audiofile_codec::alacfunctionkfr::audio_data<Interleaved>::append(const audio_data<!Interleaved> &)typedefkfr::audio_data_interleaved Alias for audio_data with interleaved storage.typedefkfr::audio_data_planar Alias for audio_data with planar (non-interleaved) storage format.classkfr::audio_data<Interleaved> Contiguous audio buffer with optional interleaving.constructorkfr::audio_data<Interleaved>::audio_data<Interleaved>()constructorkfr::audio_data<Interleaved>::audio_data<Interleaved>(audio_data<Interleaved> &&)constructorkfr::audio_data<Interleaved>::audio_data<Interleaved>(const audio_data<Interleaved> &) Converts between planar and interleaved layouts.constructorkfr::audio_data<Interleaved>::audio_data<Interleaved>(fbase *, size_t, size_t)functionkfr::audio_data<Interleaved>::audio_data<Interleaved>(fbase *, size_t, size_t, Fn &&)constructorkfr::audio_data<Interleaved>::audio_data<Interleaved>(size_t, size_t) Constructs an audio_data buffer with the specified channel count and optional initial size.constructorkfr::audio_data<Interleaved>::audio_data<Interleaved>(size_t, size_t, fbase) Constructs an audio buffer and initializes all samples to a constant value.constructorkfr::audio_data<Interleaved>::audio_data<Interleaved>(std::span<fbase *const>, size_t)functionkfr::audio_data<Interleaved>::audio_data<Interleaved>(std::span<fbase *const>, size_t, Fn &&)structkfr::audio_decoder Abstract base class for audio decoders providing methods for opening and reading audio files.destructorkfr::audio_decoder::~audio_decoder()constructorkfr::audio_decoder::audio_decoder()structkfr::audio_decoding_options Options for generic audio decoding.enumkfr::audio_dithering Supported audio dithering methods.structkfr::audio_dithering_state Represents the state of audio dithering.structkfr::audio_encoder Abstract base class for audio encoders, providing methods for opening, writing, and closing audio files.destructorkfr::audio_encoder::~audio_encoder() Destructor to close and finalize file encoding.structkfr::audio_encoding_options Represents options for audio encoding, including dithering settings.structkfr::audio_quantization Represents audio quantization parameters.constructorkfr::audio_quantization::audio_quantization(int, audio_dithering)structkfr::audio_stat Represents audio statistics such as peak and RMS values.variablekfr::audio_writing_software Software string to write into metadata, if supported by formatenumkfr::audiofile_codec Supported audio file codecs.enumkfr::audiofile_container Supported audio file container formats.functionkfr::audiofile_container_from_extension(std::string_view) Determines the audio container type from a file extension.enumkfr::audiofile_endianness Endianness of audio data.enumkfr::audiofile_error Enumerates possible error codes for audio file operations.structkfr::audiofile_format Represents the format of an audio file.typedefkfr::audiofile_header Represents a fixed-size audio file header.
B¶
enum constantkfr::audiofile_endianness::bigvariablekfr::audiofile_format::bit_depth Bits per sample.enum constantkfr::audiofile_container::bw64 BW64 as per EBU Tech 3285 v2 (no metadata support yet)functionkfr::audiofile_format::bytes_per_pcm_frame()
C¶
enum constantkfr::audiofile_container::caf Apple CAFstructkfr::caff_decoding_options Options for decoding CAFF audio files.structkfr::caff_encoding_options Represents options for CAFF audio encoding.variablekfr::audio_data<Interleaved>::capacity Allocated capacity per channel.typedefkfr::chan Determines the channel type based on interleaving.functionkfr::audio_data<Interleaved>::channel_count() Retrieves the number of audio channels.variablekfr::audiofile_format::channels Number of channels.variablekfr::audio_data<Interleaved>::channels Number of channels.functionkfr::audio_data<Interleaved>::channel(size_t) Retrieves a reference to the audio data of a specific channel.functionkfr::audio_data<Interleaved>::clear() Clears all audio data, leaving the container empty (size == 0).functionkfr::audio_decoder::close() Closes the audio file and releases resources.functionkfr::audio_encoder::close() Closes the encoder and finalizes the file.enum constantkfr::audiofile_error::closed The audio file is closedvariablekfr::audiofile_format::codec Audio codec.variablekfr::audiofile_format::container Container format.functionkfr::create_aiff_decoder(const aiff_decoding_options &) Creates a decoder for AIFF audio files.functionkfr::create_aiff_encoder(const aiff_encoding_options &) Creates an AIFF audio encoder with optional encoding options.functionkfr::create_caff_decoder(const caff_decoding_options &) Creates a decoder for CAFF audio files.functionkfr::create_caff_encoder(const caff_encoding_options &) Creates a CAFF audio encoder with optional encoding options.functionkfr::create_decoder_for_container(audiofile_container, const audio_decoding_options &) Creates an audio decoder for a specific container type.functionkfr::create_decoder_for_file(const file_path &, const audio_decoding_options &) Creates an audio decoder for a file.functionkfr::create_decoder_for_file(const std::string &, const audio_decoding_options &) file_path&, const audio_decoding_options&)functionkfr::create_decoder_from_header(const audiofile_header &, const audio_decoding_options &) Creates an audio decoder from a file header.functionkfr::create_encoder_for_container(audiofile_container, const audio_encoding_options &) Creates an audio encoder for the specified container format with optional encoding options.functionkfr::create_mediafoundation_decoder(const mediafoundation_decoding_options &) Creates a Media Foundation-based audio decoder.functionkfr::create_mp3_decoder(const mp3_decoding_options &) Creates an MP3 audio decoder with the specified decoding options.functionkfr::create_raw_decoder(const raw_decoding_options &) Creates a decoder for raw audio streams.functionkfr::create_raw_encoder(const raw_encoding_options &) Creates a raw audio encoder with optional encoding options.functionkfr::create_w64_decoder(const w64_decoding_options &) Creates a decoder for W64 audio files.functionkfr::create_w64_encoder(const w64_encoding_options &) Creates a W64 audio encoder with optional encoding options.functionkfr::create_wave_decoder(const wave_decoding_options &) Creates a decoder for WAVE audio files.functionkfr::create_wave_encoder(const wave_encoding_options &) Creates a WAVE audio encoder with optional encoding options.
D¶
variablekfr::strided_channel<T>::datavariablekfr::audio_data<Interleaved>::data Pointers to channel data.variablekfr::audio_data<Interleaved>::deallocator Deallocator for the data.functionkfr::decode_audio_file(const file_path &, audiofile_format *, const audio_decoding_options &) Decodes an audio file and returns the audio data in an interleaved format.functionkfr::decode_audio_file(const std::string &, audiofile_format *, const audio_decoding_options &)variablekfr::default_audio_frames_to_read The default number of audio frames to read in one operation.variablekfr::expression_traits<strided_channel<T>>::dimsvariablekfr::audio_dithering_state::distvariablekfr::audio_quantization::dithervariablekfr::audio_dithering_state::ditheringvariablekfr::audio_encoding_options::dithering
E¶
functionkfr::audio_data<Interleaved>::empty() Check whether this audio data container is empty.enum constantkfr::audiofile_error::empty_file The file is empty or does not contain any audio datafunctionkfr::encode_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.functionkfr::encode_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.functionkfr::encode_audio_file(const std::string &, const audio_data_interleaved &, const audiofile_format &, audio_decoder *, const audio_encoding_options &) Encodes interleaved audio data and writes it to a file (Windows-specific overload).functionkfr::encode_audio_file(const std::string &, const audio_data_planar &, const audiofile_format &, audio_decoder *, const audio_encoding_options &) Encodes planar audio data and writes it to a file (Windows-specific overload).enum constantkfr::audiofile_error::end_of_file End of file reachedvariablekfr::audiofile_format::endianness Endianness of the audio data.classkfr::expression_traits<strided_channel<T>>
F¶
functionkfr::audio_data<Interleaved>::fill(fbase) Fills the audio data with the specified value.functionkfr::audio_data<Interleaved>::find_peak()enum constantkfr::audiofile_container::flac FLACenum constantkfr::audiofile_codec::flacfunctionkfr::audio_data<Interleaved>::for_channel(Fn &&) Applies a given function to the audio data for each channel.functionkfr::audio_decoder::format() Retrieves the format of the currently opened audio file.variablekfr::raw_decoding_options::formatfunctionkfr::audio_encoder::format() Retrieves the current audio file format.enum constantkfr::audiofile_error::format_error The audio file format is invalid or unsupported.functionkfr::from_error_code(std::error_code) Converts a standard error code to an audiofile_error.
G¶
functionkfr::get_elements(const strided_channel<T> &, const shape<1> &, const axis_params<0, N> &)functionkfr::expression_traits<strided_channel<T>>::get_shape()functionkfr::expression_traits<strided_channel<T>>::get_shape(const strided_channel<T> &)
H¶
functionkfr::audio_decoder::has_chunk(std::span<const std::byte>) Checks if the file contains a chunk with the specified ID.
I¶
enum constantkfr::audiofile_codec::ieee_floatfunctionkfr::audio_data<Interleaved>::interlaved() Returns a reference to the interleaved audio data.enum constantkfr::audiofile_error::internal_error An internal error occurred.enum constantkfr::audiofile_error::invalid_argument Invalid argument passedenum constantkfr::audiofile_error::io_error An input/output error occurred.functionkfr::audio_data<Interleaved>::is_silent(fbase) Checks whether all samples in the buffer are effectively silent within a given amplitude threshold.functionkfr::is_single_codec(audiofile_container) Checks if a container supports a single codec.
L¶
enum constantkfr::audiofile_endianness::littleenum constantkfr::audiofile_codec::lpcm
M¶
variablekfr::audio_decoder::m_formatvariablekfr::audio_encoder::m_formatvariablekfr::audio_decoder::m_readervariablekfr::audio_encoder::m_writervariablekfr::max_audio_channels Maximum number of channels in audio data.structkfr::mediafoundation_decoding_options Options for decoding audio using Media Foundation.variablekfr::audiofile_format::metadata Key-value metadata pairs.typedefkfr::metadata_map Metadata map for storing key-value pairs.enum constantkfr::audiofile_container::mp3 MPEG audioenum constantkfr::audiofile_codec::mp3structkfr::mp3_decoding_options Options for decoding MP3 audio files.functionkfr::audio_data<Interleaved>::multiply(fbase) Multiplies the audio data by a specified scalar value.
N¶
enum constantkfr::audio_dithering::noneenum constantkfr::audiofile_error::not_found The file was not foundenum constantkfr::audiofile_error::not_implemented Not implemented
O¶
functionkfr::audio_decoder::open(const file_path &) Opens an audio file from a file path and retrieves its format.functionkfr::audio_encoder::open(const file_path &, const audiofile_format &, audio_decoder *) Opens the encoder with a file path and format.functionkfr::audio_decoder::open(const std::string &) Opens an audio file using a UTF-8 encoded string path (Windows-specific).functionkfr::audio_encoder::open(const std::string &, const audiofile_format &, audio_decoder *) Opens the encoder with a string path and format (Windows-specific).functionkfr::audio_decoder::open(std::shared_ptr<binary_reader>) Opens an audio file using a binary reader and retrieves its format.functionkfr::audio_encoder::open(std::shared_ptr<binary_writer>, const audiofile_format &, audio_decoder *) Opens the encoder with a binary writer and format.functionkfr::audio_dithering_state::operator()()functionkfr::audio_data<Interleaved>::operator=(audio_data<Interleaved> &&)functionkfr::audio_data<Interleaved>::operator==(const audio_data<Interleaved> &)functionkfr::audio_data<Interleaved>::operator=(const audio_data<Interleaved> &)functionkfr::audiofile_format::operator==(const audiofile_format &)
P¶
variablekfr::audio_stat::peakfunctionkfr::audio_data<Interleaved>::pointers() Retrieves an array of pointers to the base type of the audio data.variablekfr::audio_data<Interleaved>::position Position of the first sample in the audio data.functionkfr::audio_data<Interleaved>::prepend(const audio_data<!Interleaved> &)
R¶
structkfr::raw_decoding_options Options for decoding raw audio streams.structkfr::raw_encoding_options Represents options for raw audio encoding.functionkfr::audio_decoder::read_all() Reads the entire audio stream into an interleaved buffer.functionkfr::audio_decoder::read_all_planar() Reads the entire audio stream into a planar buffer.functionkfr::read_audiofile_header(const file_path &) Reads the header of an audio file.functionkfr::read_audiofile_header(const std::string &) Creates an audio decoder from a file header.functionkfr::audio_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.functionkfr::audio_decoder::read_chunk_bytes(std::span<const std::byte>) Reads a RIFF chunk into a byte vector.functionkfr::audio_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.variablekfr::audio_decoding_options::read_metadata Whether to read metadata tags during decoding.functionkfr::audio_decoder::read_to(const audio_data_interleaved &) Reads audio frames into an interleaved buffer.functionkfr::audio_decoder::reader() Retrieves the binary reader associated with the decoder.functionkfr::audio_decoder::read(size_t) Reads up to a maximum number of audio frames into a newly allocated buffer.enum constantkfr::audio_dithering::rectangularfunctionkfr::audio_data<Interleaved>::reserve(size_t)functionkfr::audio_data<Interleaved>::reset() Resets the object to its default state.functionkfr::audio_data<Interleaved>::resize(size_t) Resizes the container to hold exactly new_size elements.functionkfr::audio_data<Interleaved>::resize(size_t, fbase) Resize to the specified length and initialize newly added samples.enum constantkfr::audiofile_container::rf64 RF64 by EBUvariablekfr::audio_stat::rmsvariablekfr::audio_dithering_state::rnd
S¶
variablekfr::audiofile_format::sample_rate Sample rate in Hz.functionkfr::audiofile_format::sample_type()functionkfr::audiofile_format::sample_type_lpcm()functionkfr::samples_load(audio_sample_type, fbase *const *, const std::byte *, size_t, size_t, bool) Loads interleaved audio samples based on sample type.functionkfr::samples_load(audio_sample_type, fbase *, const std::byte *, size_t, bool) Loads audio samples based on sample type.functionkfr::samples_load(fbase *const *, const Tin *, size_t, size_t, bool) Loads interleaved audio samples into a planar floating-point buffer.functionkfr::samples_load(fbase *, const Tin *, size_t, bool) Loads audio samples into a floating-point buffer.functionkfr::samples_store(audio_sample_type, std::byte *, const fbase *const *, size_t, size_t, bool) Stores interleaved audio samples based on sample type.functionkfr::samples_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.functionkfr::samples_store(audio_sample_type, std::byte *, const fbase *, size_t, const audio_quantization &, bool) Stores audio samples based on sample type with quantization.functionkfr::samples_store(Tout *, const fbase *const *, size_t, size_t, bool) Stores planar floating-point samples into a interleaved buffer.functionkfr::samples_store(Tout *, const fbase *const *, size_t, size_t, const audio_quantization &, bool) Stores planar floating-point samples into an interleaved buffer with quantization.functionkfr::samples_store(Tout *, const fbase *, size_t, const audio_quantization &, bool) Stores floating-point samples into a buffer with quantization.variablekfr::audio_dithering_state::scalefunctionkfr::audio_decoder::seek_is_precise() Determines whether seeking is precise for this decoder.functionkfr::audio_decoder::seek(uint64_t) Seeks to a specific sample position in the audio stream.functionkfr::set_elements(strided_channel<T> &, const shape<1> &, const axis_params<0, N> &, const std::type_identity_t<vec<T, N>> &)variablekfr::strided_channel<T>::sizevariablekfr::audio_data<Interleaved>::size Number of samples per channel.functionkfr::audio_data<Interleaved>::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.functionkfr::audio_data<Interleaved>::slice(size_t, size_t) Creates a slice of the audio data starting at a specified position and with a specified length.variablekfr::audiofile_format::speakers Speaker arrangement.functionkfr::audio_data<Interleaved>::stat() Retrieves the statistical information of the audio data.variablekfr::strided_channel<T>::strideclasskfr::strided_channel<T> Represents a strided audio channel.functionkfr::audio_data<Interleaved>::swap(audio_data<Interleaved> &)functionkfr::audio_data<Interleaved>::swap(audio_data<Interleaved> &, audio_data<Interleaved> &)variablekfr::wave_encoding_options::switch_to_rf64_if_over_4gb
T¶
functionkfr::to_string(audiofile_error) Converts an audiofile_error to its string representation.enum constantkfr::audiofile_error::too_large data chunk too large for standard WAVvariablekfr::audiofile_format::total_framesfunctionkfr::audio_data<Interleaved>::total_samples() Calculates the total number of audio samples.enum constantkfr::audio_dithering::triangularfunctionkfr::audio_data<Interleaved>::truncate(size_t) Truncates the audio data to the specified length.
U¶
enum constantkfr::audiofile_container::unknownenum constantkfr::audiofile_codec::unknownenum constantkfr::audiofile_error::unknown An unknown error occurred
V¶
functionkfr::audiofile_format::valid()typedefkfr::expression_traits<strided_channel<T>>::value_type
W¶
enum constantkfr::audiofile_container::w64 Sony WAVE64structkfr::w64_decoding_options Options for decoding W64 audio files.structkfr::w64_encoding_options Represents options for W64 audio encoding.enum constantkfr::audiofile_container::wave RIFF WAVEstructkfr::wave_decoding_options Options for decoding WAVE audio files.structkfr::wave_encoding_options Represents options for WAVE audio encoding, including RF64 support for large files.functionkfr::audio_encoder::write(const audio_data_interleaved &) Writes a chunk of interleaved audio data to the encoder.functionkfr::audio_encoder::writer() Retrieves the binary writer associated with the encoder.