Skip to content

playandloadsound() Usage

PipeWarp edited this page Dec 29, 2020 · 2 revisions

Description

playandloadsound() loads sound, and plays it based on user defined values.

Example:

playandloadsound("sound/jumpsound", 1, 22050, 0, 100, 0, false, 0); //plays a 22050hz sound at panning 0, 100% volume and doesn't loop 

Values

playandloadsound(file, channel, frequency, sample-format, volume, panning, loop, loop-starting-point);