dlls/winmm/tests/capture.c - yes, we can open a device in 2MHz...

Jakob Eriksson jakov at vmlinux.org
Thu Nov 4 03:16:37 CST 2004


As shown by:
http://test.winehq.org/data/200411021000/2000_IDWASEMPTY_1/winmm:capture.txt

capture.c:571:found 1 WaveIn devices
capture.c:302:  0: "Avance AC'97 Audio" (\\?\pci#ven_1106&dev_3059&subsys_00000000&rev_10#3&61aaa01&0&8d#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\wave) 5.0 (1:101)
capture.c:305:     channels=65535 formats=00fff
capture.c:364: Test failed: waveInOpen(0): opening the device with 2 MHz sample rate should fail:  rc=MMSYSERR_NOERROR(The specified command was carried out.)
capture.c:369:     got 2000000x16x2 for 2000000x16x2
capture.c:393:waveInOpen(0): WAVE_FORMAT_MULAW not supported
capture.c:411:waveInOpen(0): WAVE_FORMAT_ADPCM not supported
capture.c:302:  WAVE_MAPPER: "Microsoft Sound Mapper" () 5.0 (1:2)
capture.c:305:     channels=2 formats=00fff
capture.c:393:waveInOpen(WAVE_MAPPER): WAVE_FORMAT_MULAW not supported
capture.c:411:waveInOpen(WAVE_MAPPER): WAVE_FORMAT_ADPCM not supported
capture: 1483 tests executed, 0 marked as todo, 1 failure.






jakov at toto:~/src/wine$ cvs diff -u dlls/winmm/tests/capture.c
Index: dlls/winmm/tests/capture.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/tests/capture.c,v
retrieving revision 1.15
diff -u -r1.15 capture.c
--- dlls/winmm/tests/capture.c  3 Nov 2004 22:13:44 -0000       1.15
+++ dlls/winmm/tests/capture.c  4 Nov 2004 09:13:46 -0000
@@ -361,12 +361,8 @@
     format.cbSize=0;
     oformat=format;
     
rc=waveInOpen(&win,device,&format,0,0,CALLBACK_NULL|WAVE_FORMAT_DIRECT);
-    ok(rc==WAVERR_BADFORMAT || rc==MMSYSERR_INVALFLAG ||
-       rc==MMSYSERR_INVALPARAM,
-       "waveInOpen(%s): opening the device with 2 MHz sample rate 
should fail: "
-       " rc=%s\n",dev_name(device),wave_in_error(rc));
     if (rc==MMSYSERR_NOERROR) {
-        trace("     got %ldx%2dx%d for %ldx%2dx%d\n",
+        trace(" Odd, got %ldx%2dx%d for %ldx%2dx%d\n",
               format.nSamplesPerSec, format.wBitsPerSample,
               format.nChannels,
               oformat.nSamplesPerSec, oformat.wBitsPerSample,





More information about the wine-patches mailing list