Does anyone know an easy way to test if a PC has a soundcard? The reason I ask is in BlitzPlus if you loaded a sound but there was no soundcard, the variable was null. then if you tried to play it, it would crash. So I had a little test which was like this:
Does anyone know if the same thing works in Max? I can't test it because I no longer have access to a PC without sound!
Also it would be neater if instead of trying to load the sound, you could just test for sound capability by querying some BlitxMax or API variable or something.
SoundClick = LoadSound(SoundPath+"click3.wav") ;disable sound and music? If Not SoundClick Then IniMusic = 0 IniSound = 0 IniMusicVolume = 0 IniSoundVolume = 0 NoSoundCard = 1 Else
Does anyone know if the same thing works in Max? I can't test it because I no longer have access to a PC without sound!
Also it would be neater if instead of trying to load the sound, you could just test for sound capability by querying some BlitxMax or API variable or something.