Realm

oa::audio::decode_memory

Decode one supported in-memory media stream and upload planar FP32 samples on this thread’s default engine. Errors Returns an error when the default engine cannot be initialized or 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( encoded: &[u8] ) -> Result<Audio>
Decode one supported in-memory media stream and upload planar FP32 samples on this thread’s default engine. Errors Returns an error when the default engine cannot be initialized or for empty, unsupported, malformed, or parameter-changing media, empty decoded audio, checked-size overflow, or device allocation/upload failure.