new AudioSFX()
This component plays audio using the SpringRoll Sound instance. Audio is played in one of two ways, by triggering specific messages defined in the audio component definition or using an audio map which plays sounds when the entity enters specified states.
- Source:
Fires:
Listens to Events:
- platypus.Entity#event:camera-update
- platypus.Entity#event:handle-render
- platypus.Entity#event:mute-audio
- platypus.Entity#event:pause-audio
- platypus.Entity#event:set-pan
- platypus.Entity#event:set-volume
- platypus.Entity#event:set-speed
- platypus.Entity#event:state-changed
- platypus.Entity#event:stop-audio
- platypus.Entity#event:toggle-mute
- platypus.Entity#event:unmute-audio
- platypus.Entity#event:unpause-audio