Skip to content

function create_decoder_for_file(const file_path &, const audio_decoding_options &) audio

std::unique_ptr<audio_decoder> create_decoder_for_file(
    const file_path& path, const audio_decoding_options& options = { … }

Creates an audio decoder for a file.

Parameters
path Path to the audio file.
options Optional decoding options.
Returns
Unique pointer to the created decoder.

Defined at audio/decoder.hpp:211