Touhou Wiki
Advertisement

Sound Functions[]

Functions to play sounds. WAV, MP3, Ogg Vorbis, and MIDI are available. The correct type of the file which extention is .wav is automatically adopted in the order WAV -> MP3 -> Ogg Vorbis -> MIDI.

LoadMusic[]

Load the background music from the file on the memory.

1 Parameter
    1) path of the music (string)

PlayMusic[]

Play the background music. If not loaded, the music is automatically loaded.

1 Parameter
    1) path of the music (string)

FadeOutMusic[]

Fades out the background music.

2 Parameters
    1) path of the music (string)
    2) fade out time

DeleteMusic[]

Stop the playing music and remove it from the memory.

1 Parameter
    1) path of the music (string)

LoadSE[]

Load the sound effect on the memory.

1 Parameter
    1) path of the sound (string)

PlaySE[]

Play the sound effect. If not loaded, the sound is automatically loaded.

1 Parameter
    1) path of the sound (string)

StopSE[]

Stop the playing sound effect.

1 Parameter
    1) path of the sound (string)

DeleteSE[]

Stop the playing sound effect and remove it from the memory.

1 Parameter
    1) path of the sound (string)

Advertisement