2003-09-21 Saito <timidity@flashmail.com>
- * timidity/w32g_a.c, timidity/w32_a.c:
+ * timidity/w32_a.c:
Add detect() functions.
* interface/rtsyn_winmm.c:
Fix around sleep().
/*****************************************************************************************************************************/
+static int detect(void);
+
#define dpm w32_play_mode
PlayMode dpm =
open_output,
close_output,
output_data,
- acntl
+ acntl,
+ detect
};
/*****************************************************************************************************************************/
}
}
+static int detect(void)
+{
+ if (waveOutGetNumDevs() == 0) {return 0;} /* not found */
+ return 1; /* found */
+}
+
+
/*****************************************************************************************************************************/
static int output_data(char * Data, int32 Size)