Host typegenerated
Audio
Playing sound effects and music. Every sound goes through a bus — "effects", "music", or any other name — and every bus through "master", so a settings screen can turn each down.
9 members · engine 0.1.0
Audio.loop(clip: String, volume: number) -> unitPlays a sound over and over until stopped, such as music, at a volume from 0 (silent) to 1 (full), through the"music"bus.Audio.loop_on(bus: String, clip: String, volume: number) -> unitPlays a sound over and over through a bus you name.Audio.pause_all() -> unitPauses every sound that is playing.Audio.play(clip: String, volume: number) -> unitPlays a sound once, at a volume from 0 (silent) to 1 (full), through the"effects"bus.Audio.play_on(bus: String, clip: String, volume: number) -> unitPlays a sound once through a bus you name.Audio.resume_all() -> unitContinues every paused sound.Audio.set_volume(bus: String, volume: number) -> unitSets a bus's volume from 0 to 1, at once for every sound playing through it."master"turns everything up or down.Audio.stop_all() -> unitStops every sound that is playing.Audio.volume(bus: String) -> numberA bus's volume as last set, or 1 for one never set.
- Source
- docs/generated/decay-api.json
- Schema
- v1
- Engine version
- 0.1.0
- Source commit
909aca81368b