Sorry for double post...
I got a code like this from another forum:
That code works like charm, but the only problem is, that I don`t know how to make it randomly load different *.wav files from the given directory. Or how to make it stop the loop.
I tried many tricks which would be logical in my opinion, but VB6 doesn`t co-operate with my mind bobbling programming skillz.![](/static/smilies/biggrin.gif)
So please guys, pimp my code to make it load randomly different given sound files and stop it from looping. Also needs to stop playing the sound file after I press the button again. Would sound stupid if you drove a truck, changed gears and started pushing pedal to the metal again and the turbo would still howl.
Thank you.
I got a code like this from another forum:
That code works like charm, but the only problem is, that I don`t know how to make it randomly load different *.wav files from the given directory. Or how to make it stop the loop.
I tried many tricks which would be logical in my opinion, but VB6 doesn`t co-operate with my mind bobbling programming skillz.
![](/static/smilies/biggrin.gif)
So please guys, pimp my code to make it load randomly different given sound files and stop it from looping. Also needs to stop playing the sound file after I press the button again. Would sound stupid if you drove a truck, changed gears and started pushing pedal to the metal again and the turbo would still howl.
Thank you.