Member Functions¶
A¶
functionaudio_data<IsInterleaved>::append(const audio_data<IsInterleaved> &) Appends samples from a buffer with the opposite layout.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.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.
B¶
C¶
functionaudio_data<IsInterleaved>::channel_count() Retrieves the number of audio 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.
E¶
functionaudio_data<IsInterleaved>::empty() Check whether this audio data container is empty.
F¶
functionaudio_data<IsInterleaved>::fill(fbase) Fills the audio data with the specified value.functionaudio_data<IsInterleaved>::find_peak()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.functionaudio_encoder::format() Retrieves the current audio file format.
G¶
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¶
functionaudio_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.
M¶
functionaudio_data<IsInterleaved>::multiply(fbase) Multiplies the audio data by a specified scalar value.
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¶
functionaudio_data<IsInterleaved>::pointers() Retrieves an array of pointers to the base type of the audio data.functionaudio_data<IsInterleaved>::prepend(const audio_data<IsInterleaved> &) Prepends samples from a buffer with the opposite layout.
R¶
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.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.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.functionaudio_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.
S¶
functionaudiofile_format::sample_type()functionaudiofile_format::sample_type_lpcm()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.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.functionaudio_data<IsInterleaved>::stat() Retrieves the statistical information of the audio data.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.
T¶
functionaudio_data<IsInterleaved>::total_samples() Calculates the total number of audio samples.functionaudio_data<IsInterleaved>::truncate(size_t) Truncates the audio data to the specified length.
V¶
functionaudiofile_format::valid()
W¶
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.