Touhou Wiki
No edit summary
 
 
(One intermediate revision by one other user not shown)
Line 20: Line 20:
 
''1 Parameter''
 
''1 Parameter''
 
1) path of the music (string)
 
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 ===
 
=== DeleteMusic ===
Line 59: Line 67:
 
*Return to [[Touhou Danmakufu: Functions]]
 
*Return to [[Touhou Danmakufu: Functions]]
 
**Return to [[Touhou Danmakufu: Common Functions]]
 
**Return to [[Touhou Danmakufu: Common Functions]]
  +
[[Category:Touhou Danmakufu]]

Latest revision as of 19:34, 6 December 2009


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)