Help :P
BlitzMax Forums/BlitzMax Beginners Area/Help :P| 
 | ||
| Hi all, Here come my first doubts :P I need to be sure screen / audio / input devices are available or working... Under PB i used to do it like this If initaudio() .. If initjoystick() .. If openscreen() .. But i see no way to do this under Bmax :\ Does it matter ? I mean, can i play sound even if the audio device is not present or does that throw some sort of error? | 
| 
 | ||
| For joysticks: If Not JoyCount() Print "No joysticks found!" For graphics see: GraphicsModeExists()Although that does not guarantee the display will be opened. You'll likely get a 'Unable to open graphics screen' message and the progam will terminate. If no sound card exist the program just terminates if you do something like: sfx=LoadSound("test.wav") | 
| 
 | ||
|  If no sound card exist the program just terminates if you have do something like:   This is the kind of situation i want to avoid! There is no excuse for this, at least some sort of checking should be implemented! | 
| 
 | ||
|  If no sound card exist the program just terminates  I don't think it does - it just doesn't play any sounds. Freeaudio certainly doesn't terminate. I think you're pretty much guaranteed that the graphics, sound and input systems are working, no real need to check. | 
| 
 | ||
|   don't think it does - it just doesn't play any sounds As a quick test I disabled my sound card and ran a few examples with sound. They terminate with 'Unhandled memory exception error' | 
| 
 | ||
| Is this what you're looking for? http://www.blitzbasic.com/Community/posts.php?topic=42231 It'd be nice to know what is going to be officially added to a module or whether we'll have to add and manage them ourselves. |