Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9279edfb
Commit
9279edfb
authored
Jan 11, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Replace some '#if 0's with 'if (0)'s.
Fix the code so it compiles without warnings.
parent
94be42eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
12 deletions
+20
-12
capture.c
dlls/winmm/tests/capture.c
+12
-8
wave.c
dlls/winmm/tests/wave.c
+8
-4
No files found.
dlls/winmm/tests/capture.c
View file @
9279edfb
...
...
@@ -329,27 +329,29 @@ static void wave_in_test_device(int device)
"waveInGetDevCapsW(%s): MMSYSERR_NOERROR or MMSYSERR_NOTSUPPORTED "
"expected, got %s
\n
"
,
dev_name
(
device
),
wave_in_error
(
rc
));
rc
=
waveInGetDevCapsA
(
device
,
0
,
sizeof
(
capsA
));
rc
=
waveInGetDevCapsA
(
device
,
NULL
,
sizeof
(
capsA
));
ok
(
rc
==
MMSYSERR_INVALPARAM
,
"waveInGetDevCapsA(%s): MMSYSERR_INVALPARAM expected, got %s
\n
"
,
dev_name
(
device
),
wave_in_error
(
rc
));
rc
=
waveInGetDevCapsW
(
device
,
0
,
sizeof
(
capsW
));
rc
=
waveInGetDevCapsW
(
device
,
NULL
,
sizeof
(
capsW
));
ok
(
rc
==
MMSYSERR_INVALPARAM
||
rc
==
MMSYSERR_NOTSUPPORTED
,
"waveInGetDevCapsW(%s): MMSYSERR_INVALPARAM or MMSYSERR_NOTSUPPORTED "
"expected, got %s
\n
"
,
dev_name
(
device
),
wave_in_error
(
rc
));
#if 0 /* FIXME: this works on windows but crashes wine */
rc=waveInGetDevCapsA(device,1,sizeof(capsA));
if
(
0
)
{
/* FIXME: this works on windows but crashes wine */
rc
=
waveInGetDevCapsA
(
device
,(
LPWAVEINCAPSA
)
1
,
sizeof
(
capsA
));
ok
(
rc
==
MMSYSERR_INVALPARAM
,
"waveInGetDevCapsA(%s): MMSYSERR_INVALPARAM expected, got %s
\n
"
,
dev_name
(
device
),
wave_in_error
(
rc
));
rc=waveInGetDevCapsW(device,1,sizeof(capsW));
rc
=
waveInGetDevCapsW
(
device
,
(
LPWAVEINCAPSW
)
1
,
sizeof
(
capsW
));
ok
(
rc
==
MMSYSERR_INVALPARAM
||
rc
==
MMSYSERR_NOTSUPPORTED
,
"waveInGetDevCapsW(%s): MMSYSERR_INVALPARAM or MMSYSERR_NOTSUPPORTED "
"expected, got %s
\n
"
,
dev_name
(
device
),
wave_in_error
(
rc
));
#endif
}
rc
=
waveInGetDevCapsA
(
device
,
&
capsA
,
4
);
ok
(
rc
==
MMSYSERR_NOERROR
,
...
...
@@ -572,7 +574,9 @@ static void wave_in_test_device(int device)
trace
(
"waveInOpen(%s): 6 channels not supported
\n
"
,
dev_name
(
device
));
#if 0 /* ALSA doesn't like this */
if
(
0
)
{
/* FIXME: ALSA doesn't like this */
/* test if 24 bit samples supported */
wfex
.
Format
.
wFormatTag
=
WAVE_FORMAT_EXTENSIBLE
;
wfex
.
Format
.
nChannels
=
2
;
...
...
@@ -596,7 +600,7 @@ static void wave_in_test_device(int device)
}
else
trace
(
"waveInOpen(%s): 24 bit samples not supported
\n
"
,
dev_name
(
device
));
#endif
}
/* test if 32 bit samples supported */
wfex
.
Format
.
wFormatTag
=
WAVE_FORMAT_EXTENSIBLE
;
...
...
dlls/winmm/tests/wave.c
View file @
9279edfb
...
...
@@ -838,7 +838,9 @@ static void wave_out_test_device(int device)
"waveOutGetDevCapsW(%s): MMSYSERR_INVALPARAM or MMSYSERR_NOTSUPPORTED "
"expected, got %s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
#if 0 /* FIXME: this works on windows but crashes wine */
if
(
0
)
{
/* FIXME: this works on windows but crashes wine */
rc
=
waveOutGetDevCapsA
(
device
,(
LPWAVEOUTCAPSA
)
1
,
sizeof
(
capsA
));
ok
(
rc
==
MMSYSERR_INVALPARAM
,
"waveOutGetDevCapsA(%s): MMSYSERR_INVALPARAM expected, got %s
\n
"
,
...
...
@@ -848,7 +850,7 @@ static void wave_out_test_device(int device)
ok
(
rc
==
MMSYSERR_INVALPARAM
||
rc
==
MMSYSERR_NOTSUPPORTED
,
"waveOutGetDevCapsW(%s): MMSYSERR_INVALPARAM or MMSYSERR_NOTSUPPORTED "
"expected, got %s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
#endif
}
rc
=
waveOutGetDevCapsA
(
device
,
&
capsA
,
4
);
ok
(
rc
==
MMSYSERR_NOERROR
,
...
...
@@ -1257,7 +1259,9 @@ static void wave_out_test_device(int device)
trace
(
"waveOutOpen(%s): 6 channels not supported
\n
"
,
dev_name
(
device
));
#if 0 /* ALSA doesn't like this format */
if
(
0
)
{
/* FIXME: ALSA doesn't like this format */
/* test if 24 bit samples supported */
wfex
.
Format
.
wFormatTag
=
WAVE_FORMAT_EXTENSIBLE
;
wfex
.
Format
.
nChannels
=
2
;
...
...
@@ -1283,7 +1287,7 @@ static void wave_out_test_device(int device)
}
else
trace
(
"waveOutOpen(%s): 24 bit samples not supported
\n
"
,
dev_name
(
device
));
#endif
}
/* test if 32 bit samples supported */
wfex
.
Format
.
wFormatTag
=
WAVE_FORMAT_EXTENSIBLE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment