|
|
"Sound Card Test", by semar
|
This simple test, that uses the return code of loadsound against a .WAV file, can check if there's a working sound card on the pc where your Blitz program is running on.
This is useful on system with low specs, because if your Blitz program attempts to play a sound on a system with no sound card, the program will crash badly..
Note that the test works only with a WAV file; if you try LoadSound against another kind of sound file, the test itself will crash !
Hope you find this snippet useful, Sergio. |
| Code | | | |