make

fun make(bytes: ByteArray, rendererType: RendererType = Rive.defaultRendererType): RiveAudio

Creates a RiveAudio by decoding bytes.

The caller is in charge of the ownership of this NativeObject. It must be freed by calling release.

Return

The constructed RiveAudio object.

Parameters

bytes

Encoded bytes for an audio file.

rendererType

The renderer decoding this object. This needs to match the renderer for the View using this.