AudioEmitter
class in OpalScript
Owns one sound voice. Play, loop and stop it with volume, pitch and stereo pan.
Properties
| Member | Description |
|---|---|
| AudioEmitter.Playing | Read-only runtime value. Use component methods to change state. |
| AudioEmitter.Diagnostic | Read-only runtime value. Use component methods to change state. |
Methods
| Member | Description |
|---|---|
| AudioEmitter.Play | Replace this emitter's voice with the configured sound; playback status updates after loading. |
| AudioEmitter.Stop | Cancel pending loading and stop this emitter's voice. |
| AudioEmitter.IsPlaying | Whether the owned sound voice is playing. |
Events
| Member | Description |
|---|---|
| AudioEmitter.started | A sound voice was admitted and started. |
| AudioEmitter.stopped | The owned voice was stopped explicitly, disabled or released. |
| AudioEmitter.finished | The owned voice ended naturally. |