Audio Functions

From Danmakufu Wiki
Jump to: navigation, search

LoadSound

Arguments:
 1) path (char)

Loads specified sound file.

Note: You must use this function before using PlayBGM or PlaySE, in the same script as these two functions are called on the respective paths.

RemoveSound

Arguments:
 1) path (char)

Removes specified sound file.

PlayBGM

Arguments:
 1) path (char)
 2) loop start second (real)
 3) loop end second (real)

Plays the specified sound file as a looping BGM. You can be more precise by using decimals (for instance, if you want to loop from 2.5 seconds on, you can type 2.5).

PlaySE

Arguments:
 1) path (char)

Plays specified sound file as a sound effect.

StopSound

Arguments:
 1) path (char)

Stops specified sound file.