class

FAudioFileDecoder

FAudioFileDecoder — a whole clip to interleaved float PCM at a rate and channel count the caller picks, outside the live mixer. For offline work (the Sequencer's movie render mixes its audio tracks with it): a source file miniaudio decodes (wav/mp3/flac/ogg) or a cooked .maudio in any codec.

Module
Audio
Header
#include "Audio/AudioFileDecoder.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
boolDecodeToFloatReads through the VFS, falling back to the native path.
boolDecodeMemoryToFloat

Function details

DecodeToFloat

C++
static bool DecodeToFloat(const std::string& path, uint32_t sampleRate, uint32_t channels, std::vector<float>& outInterleaved, std::string* outError = nullptr)

Reads through the VFS, falling back to the native path. False when the file is missing or does not decode; outError says which.

DecodeMemoryToFloat

C++
static bool DecodeMemoryToFloat(const uint8_t* data, size_t size, uint32_t sampleRate, uint32_t channels, std::vector<float>& outInterleaved, std::string* outError = nullptr)
Generated from Audio/AudioFileDecoder.h via audio.json · Oct 26, 2026Version 1.0.0