Check Sound Driver Started

BlitzPlus Forums/BlitzPlus Programming/Check Sound Driver Started

Yeshu777(Posted 2008) [#1]
I'm writin a small demo for my band and I have a program that runs on startup and plays some music.

However, when it runs (maybe before windows has finished booting up completely) the sound does not play (can't be heard). Plays fine if you restart it manually afterwards.

Any ideas?

Maybe a delay before running??


Dabhand(Posted 2008) [#2]
repeat
sound = LoadSound("file.wav")
soundChannel = PlaySound(sound)
until ChannelPlaying(channel)


Try that

Dabz


Yeshu777(Posted 2008) [#3]
Thanks for the reply,

I eventually got round it by putting a 10 second delay on start up, seems to work fine now.