function decode_audio_file(const file_path &, audiofile_format *, const audio_decoding_options &) audio¶
expected<audio_data_interleaved, audiofile_error> decode_audio_file(
const file_path& path, audiofile_format* out_format = nullptr,
const audio_decoding_options& options = { … } Decodes an audio file and returns the audio data in an interleaved format.
| path | The file path to the audio file. |
| out_format | Optional pointer to store the decoded audio format. |
| options | Optional decoding options. |
| The decoded audio data on success, or an error code on failure. |
Defined at audio/decoder.hpp:378