public static uint midiOutGetNumDevs() {
uint ret = MMSYSERR_ERROR;
if ( status_winmm != DllStatus.NotFound ) {
try {
ret = __midiOutGetNumDevs();
} catch ( DllNotFoundException ex ) {
status_winmm = DllStatus.NotFound;
}
} else if ( status_winmm_so != DllStatus.NotFound ) {
try {
ret = __so_midiOutGetNumDevs();
} catch ( DllNotFoundException ex ) {
status_winmm_so = DllStatus.NotFound;
}
}
return ret;
}