Add soundcard check for win32
BlitzMax Forums/BlitzMax Module Tweaks/Add soundcard check for win32
| ||
in win32.i add:waveOutGetNumDevs()S="waveOutGetNumDevs@4"to the bottom and in winmm.bmx add: Function waveOutGetNumDevs() in the extern block. then rebuild the modules and you will be able to do: if waveOutGetNumDevs() then print "has at least one soundcard installed" else print "no soundcard detected" endif |
| ||
Do the same for waveInGetNumDevs() to get sound capture devices also. |
| ||
Good deal... but add that as your own module instead of in an "official" one. I'll be adding a 'Perturbed.Mod' and building right now. :) |