Sound.Play (gb.sdl2.audio)

Function Play ( [ Loops As Integer, FadeIn As Float ] ) As Channel

Finds a free channel and plays the sound on it. The channel is returned.

  • Loops is how many times the sound will be played, -1 meaning that the sound is played forever. By default the sound is played once.

  • FadeIn is the fade-in duration in seconds if any. By default this is zero, i.e. there is no fading.