Channel.Play (gb.sdl2.audio)

Sub Play ( [ Sound As Sound, Loops As Integer, FadeIn As Float ] )

Play a sound of the channel with an optional fade-in.

  • Sound is the sound to play.

  • 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.