dsound/tests: Replace some '#if 0's with 'if (0)'s.
Francois Gouget
fgouget at free.fr
Thu Jan 11 08:53:41 CST 2007
---
Feel free to 'uncomment' the non PCM format test. It works just fine
here but it might depend on the sound backend (apparently still using
wineoss by default here).
dlls/dsound/tests/capture.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/dlls/dsound/tests/capture.c b/dlls/dsound/tests/capture.c
index 23b4095..75ef539 100644
--- a/dlls/dsound/tests/capture.c
+++ b/dlls/dsound/tests/capture.c
@@ -645,7 +645,9 @@ static BOOL WINAPI dscenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
}
/* try a non PCM format */
-#if 0
+ if (0)
+ {
+ /* FIXME: Why is this commented out? */
init_format(&wfx,WAVE_FORMAT_MULAW,8000,8,1);
ZeroMemory(&bufdesc, sizeof(bufdesc));
bufdesc.dwSize=sizeof(bufdesc);
@@ -664,10 +666,12 @@ static BOOL WINAPI dscenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
ok(ref==0,"IDirectSoundCaptureBuffer_Release() has %d references, "
"should have 0\n",ref);
}
-#endif
+ }
/* Try an invalid format to test error handling */
-#if 0
+ if (0)
+ {
+ /* FIXME: Remove this test altogether? */
init_format(&wfx,WAVE_FORMAT_PCM,2000000,16,2);
ZeroMemory(&bufdesc, sizeof(bufdesc));
bufdesc.dwSize=sizeof(bufdesc);
@@ -680,7 +684,7 @@ static BOOL WINAPI dscenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
rc=IDirectSoundCapture_CreateCaptureBuffer(dsco,&bufdesc,&dscbo,NULL);
ok(rc!=DS_OK,"IDirectSoundCapture_CreateCaptureBuffer() should have failed "
"at 2 MHz %s\n",DXGetErrorString8(rc));
-#endif
+ }
EXIT:
if (dsco!=NULL) {
--
1.4.4.2
More information about the wine-patches
mailing list