remember Registered Audio
Decode and register audio from the given bytes on the provided riveWorker. The decoded audio can only be used on the same RiveWorker it was created on.
This function is intended for use with audio that is registered once, as a convenience. If you want to register multiple times, use rememberAudio and AudioAsset.register instead.
The audio will be deleted, unregistered, and its RiveWorker reference released when the composable leaves the composition.
Return
The Result of the audio decoding and registration, which can be either loading, error, or success with the AudioHandle.
Parameters
The Rive worker that owns and performs operations on this audio.
The key of the referenced audio. This comes from the zip file created when exporting a Rive file.
The byte array containing the audio data to decode.