Audio Events are built for quick sounds. There are no runtime controls for the sound: you can’t pause it or change its volume or panning while it plays. For background music, voice-overs, and other long or controlled audio, use Scripting with AudioSound and AudioSource.
Creating an Audio Event
Drag an audio asset or clip from the Assets panel onto the stage. Rive creates an Audio Event that plays that sound. To turn an existing event into an Audio Event, select it, set Type to Audio in the Inspector, and choose a sound in the Asset field under Audio Properties. You can create a new event with the Event tool (Shift + E). To import sounds, browse the Soundly library, make clips, or adjust a sound’s volume, see Audio Assets.Playing an Audio Event
An Audio Event plays its sound whenever it’s reported. Like any event, you can report it from:- A timeline, to play the sound at an exact frame.
- A state or transition, to play the sound when the State Machine enters a state or makes a transition.
- A listener, to play the sound in response to the user, such as a click on a shape.