Hello everyone, I am creating software that needs to play several sounds, but independently, as it will be the user who will put them to play. I already made these codes, is there any way to do this or not?
thank you for your help!
put several sounds
- cogier
- Site Admin
- Posts: 1125
- Joined: Wednesday 21st September 2016 2:22pm
- Location: Guernsey, Channel Islands
Re: put several sounds
Hi kanba and welcome to the forum.
Try this code: -
Try this code: -
''Needs gb.sdl2.audio
Public Sub Form_Open()
Dim sSound1 As Sound = Sound.Load("16.wav") 'Change as necessary
Dim sSound2 As Sound = Sound.Load("20.wav") 'Change as necessary
Channels[1].Play(sSound1)
Channels[2].Play(sSound2)
End
Re: put several sounds
Thanks! worked perfectly!