winmm_output: improved test_default_device
If no device is available test_default_device returns false.
This commit is contained in:
parent
75f4772ba2
commit
ad56e10e5b
@ -65,8 +65,7 @@ winmm_output_get_handle(struct winmm_output* output)
|
|||||||
static bool
|
static bool
|
||||||
winmm_output_test_default_device(void)
|
winmm_output_test_default_device(void)
|
||||||
{
|
{
|
||||||
/* we assume that Wave is always available */
|
return waveOutGetNumDevs() > 0;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *
|
static void *
|
||||||
|
Loading…
Reference in New Issue
Block a user