Add soundcard check for win32

BlitzMax Forums/BlitzMax Module Tweaks/Add soundcard check for win32

Perturbatio(Posted 2005) [#1]
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



Perturbatio(Posted 2005) [#2]
Do the same for waveInGetNumDevs() to get sound capture devices also.


Kanati(Posted 2005) [#3]
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. :)