Loader for audio files using miniaudio's built-in decoders.
static AudioData load(const std::filesystem::path &path)
Decode an audio file to PCM float data.
Decoded audio data ready for playback.
uint32_t sampleRate
Sample rate in Hz.
uint32_t channels
Number of interleaved output channels.
uint64_t frameCount
Number of decoded PCM frames per channel.
float getDurationSeconds() const
Gets the decoded duration in seconds.
std::vector< float > pcmData
Interleaved float samples.