Audio
class in OpalScript
Play authored sound and music assets during Play.
Methods
| Member | Description |
|---|---|
| Audio.Play | Play an authored sound asset at volume 0–2. Playback loads asynchronously. |
| Audio.PlayAt | Play a sound with volume 0–2, pan −1–1, and positive playback pitch. |
| Audio.PlayMusic | Play a looping music asset at volume 0–2. Reusing the current asset adjusts volume without restarting. |
| Audio.StopSounds | Stop all sound effects; music uses a separate channel. |
| Audio.StopMusic | Stop the music channel. |
| Audio.SetMasterVolume | Set master volume from 0 to 1. |
| Audio.SetMusicVolume | Set music bus volume from 0 to 1. |