sound.play

MJS / AC Piece API / sound / done
sound.play(sfx, options, callbacks)

Play a registered sample/sfx by id and return a live handle.

Parameters

Name Type Required Description
sfx string yes Sample id/path to play.
options object no Playback options (volume, pan, loop, speed, etc).
callbacks object no Lifecycle callbacks (for example kill handlers).

Returns

object

Examples

No explicit examples yet.

Open playground to experiment live.

Runtime Notes

No additional runtime notes yet.

Details

No additional details yet.

Live Preview

Embedded AC preview