wave test: Warn the user if sound is turned off
Francois Gouget
fgouget at codeweavers.com
Wed Mar 2 06:51:58 CST 2005
Now that interactive mode uses the current volume, it should warn the
user if the sound it turned off. Note that, at least if you're using the
Alsa OSS emulation, our notion of volume is based on the Alsa PCM volume
so we won't catch all cases. For instance if the Alsa Master volume is 0
the user will hear nothing and the test would not notice. But then the
speakers may not be plugged in and the test would not notice either.
Let's just do what we can.
Changelog:
* dlls/winmm/tests/wave.c
Francois Gouget <fgouget at codeweavers.com>
Warn the user if he is running the test in interactive mode but the
sound is turned off.
--
Francois Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: dlls/winmm/tests/wave.c
===================================================================
RCS file: /var/cvs/wine/dlls/winmm/tests/wave.c,v
retrieving revision 1.48
diff -u -p -r1.48 wave.c
--- dlls/winmm/tests/wave.c 23 Feb 2005 20:28:28 -0000 1.48
+++ dlls/winmm/tests/wave.c 2 Mar 2005 12:40:14 -0000
@@ -527,6 +527,8 @@ static void wave_out_test_deviceOut(int
get_format_str(pwfx->wFormatTag),
flags & WAVE_FORMAT_DIRECT ? "WAVE_FORMAT_DIRECT" :
flags & WAVE_MAPPED ? "WAVE_MAPPED" : "");
+ if (sine && !volume)
+ trace("*** Warning the sound is muted, you will not hear the test\n");
/* Check that the position is 0 at start */
check_position(device, wout, 0, pwfx);
More information about the wine-patches
mailing list