Skip to main content

Sound

This node plays audio files.

The Sound node manages audio playback for sound effects and music.

The Sound node loads and plays an audio file. It supports one-shot playback (sound effects) or looping (music). It provides controls for volume and playback state.

Inputs

Content

DataDescription
SourceURL of the audio file (mp3, wav, etc.).

Playback

DataDescription
Volume0 to 1.
LoopBoolean. If true, repeats when finished.
AutoplayBoolean. Start playing on load.

Actions

SignalDescription
PlayStarts playback.
StopStops playback and rewinds.
PausePauses playback.

Outputs

Events

SignalDescription
EndedTriggered when playback finishes (if not looping).

Usage

Button Click Sound

  1. Set Source to "click.mp3".
  2. Connect Button Click signal to Sound Play signal.

Background Music

  1. Set Source to "music.mp3".
  2. Enable Loop and Autoplay.
  3. Set Volume to 0.5.

Detailed Behavior

  • Overlapping: By default, triggering Play while already playing might restart the sound or play a second instance depending on implementation (usually restarts/overlaps for SFX).

Troubleshooting

  • No Sound: Browsers block autoplay audio until the user interacts with the page. Ensure the first sound is triggered by a user action (click/tap).