I assign a backgroundmusic with:
musicchn=PlayMusic(MusicDir$+musicfiles(song_no))
When I need to change music I stop it and free up the memory used:
StopChannel musicchn
FreeSound musicchn
This works perfect with B3D 1.83, but with B+ the program crashes and I get the message "Invalide sound handle".
As there is nothing like "Freemusic" what can I do to make it work in B+ 1.35?
Notes:
- No, I can't use Loadsound as some formats are not supported!
- No, I can't just play new music files as the arising memory leak will crash the pc!
*looks helpless and waits for the enlightment*
musicchn=PlayMusic(MusicDir$+musicfiles(song_no))
When I need to change music I stop it and free up the memory used:
StopChannel musicchn
FreeSound musicchn
This works perfect with B3D 1.83, but with B+ the program crashes and I get the message "Invalide sound handle".
As there is nothing like "Freemusic" what can I do to make it work in B+ 1.35?
Notes:
- No, I can't use Loadsound as some formats are not supported!
- No, I can't just play new music files as the arising memory leak will crash the pc!
*looks helpless and waits for the enlightment*