Sound Advice
Miscellaneous Forums/General Discussion/Sound Advice
I'm trying to create a small 'demo' that's run from the startup folder. It's just plays some wavs and shows an image.
When it's run on boot it doesn't appear to play any sounds, seems find when run by selecting the exe after boot.
I'm anticipating I'll have to put a delay for windows to finish all the background stuff after booting up.
Can anyone shed any light on this issue?
Thanks in advance.
remember to change the directory in the application to where the audio files are. A blitz app's "start in" folder is different when executed from a double click when compared to having it in the start menu.
Hmmm..
It's just a short cut to the program directory in the startup folder - does the same apply?
The images appear.. just doesn't play the wav file.
It still applies, yes. though, if you want to test the delay just shove a delay 5000 in at the start of your app ;-)
As for Sound advice: Never eat yellow snow. That's sound advice!
Thnx, will investigate further.
I'm not sure (if it's a sound driver initialization delay) that a delay in your code will work, if you're using BMax then I would presume the code checks for sound at start up, then initializes the appropriate driver (a null driver for no sound), if you could force it to re-check after a period of time, or if there was a WAIT_FOR_SOUND_INITIALIZATION event then that might do it.