If I have an array of sounds similar to the following code:
Not a lot happens in the [Stuff Happens Here] section but something causes FreeSound to crash the program with: "Invalid Sound Handle". Even if I don't change the sounds, play the sounds or refer to the array at all it still crashes.
Of course, i must be doing something wrong but I can't find it for the life of me. Any ideas?
Dim Sounds(3) Sounds(1) = LoadSound("MySound1.mp3") Sounds(2) = LoadSound("MySound2.mp3") Sounds(3) = LoadSound("MySound3.mp3") [Stuff Happens Here] FreeSound Sounds(1) FreeSound Sounds(2) FreeSound Sounds(3)
Not a lot happens in the [Stuff Happens Here] section but something causes FreeSound to crash the program with: "Invalid Sound Handle". Even if I don't change the sounds, play the sounds or refer to the array at all it still crashes.
Of course, i must be doing something wrong but I can't find it for the life of me. Any ideas?