SoundEffectPlayer

Provides a class for playing sound effects. An adapter must be specified.

Constructors

Link copied to clipboard
constructor(adapter: AudioAdapter)

Functions

Link copied to clipboard
infix fun sfx(soundEffect: SoundEffect)

Play a specified soundEffect.

infix fun sfx(key: String)

Play a sound effect, specified by key key.