oa::audio::decode_memory

Decode one in-memory WAV/PCM, FLAC, or MP3 stream and upload planar FP32 samples. Errors Returns an error for empty, unsupported, malformed, or parameter-changing media, empty decoded audio, checked-size overflow, or device allocation/upload failure.

FnRust public API

Function Documentation

pub fn decode_memory( engine: &Engine, encoded: &[u8] ) -> Result<Audio>
Decode one in-memory WAV/PCM, FLAC, or MP3 stream and upload planar FP32 samples. Errors Returns an error for empty, unsupported, malformed, or parameter-changing media, empty decoded audio, checked-size overflow, or device allocation/upload failure.