Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
463d474c
Commit
463d474c
authored
May 14, 2004
by
Robert Reif
Committed by
Alexandre Julliard
May 14, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print human-readable capabilities flag.
parent
5b23efc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
wave.c
dlls/winmm/tests/wave.c
+19
-2
No files found.
dlls/winmm/tests/wave.c
View file @
463d474c
...
...
@@ -192,6 +192,23 @@ static const char * wave_open_flags(DWORD flags)
return
msg
;
}
static
const
char
*
wave_out_caps
(
DWORD
dwSupport
)
{
#define ADD_FLAG(f) if (dwSupport & f) strcat(msg, " " #f)
static
char
msg
[
256
];
msg
[
0
]
=
0
;
ADD_FLAG
(
WAVECAPS_PITCH
);
ADD_FLAG
(
WAVECAPS_PLAYBACKRATE
);
ADD_FLAG
(
WAVECAPS_VOLUME
);
ADD_FLAG
(
WAVECAPS_LRVOLUME
);
ADD_FLAG
(
WAVECAPS_SYNC
);
ADD_FLAG
(
WAVECAPS_SAMPLEACCURATE
);
return
msg
[
0
]
?
msg
+
1
:
""
;
#undef FLAG
}
static
void
wave_out_test_deviceOut
(
int
device
,
int
format
,
DWORD
flags
,
LPWAVEOUTCAPS
pcaps
)
{
WAVEFORMATEX
wfx
;
...
...
@@ -334,11 +351,11 @@ static void wave_out_tests()
name
=
strdup
(
"not supported"
);
}
trace
(
" %d:
\"
%s
\"
(%s) %d.%d (%d:%d): channels=%d formats=%05lx support=%04lx
\n
"
,
trace
(
" %d:
\"
%s
\"
(%s) %d.%d (%d:%d): channels=%d formats=%05lx support=%04lx
(%s)
\n
"
,
d
,
caps
.
szPname
,(
name
?
name
:
"failed"
),
caps
.
vDriverVersion
>>
8
,
caps
.
vDriverVersion
&
0xff
,
caps
.
wMid
,
caps
.
wPid
,
caps
.
wChannels
,
caps
.
dwFormats
,
caps
.
dwSupport
);
caps
.
wChannels
,
caps
.
dwFormats
,
caps
.
dwSupport
,
wave_out_caps
(
caps
.
dwSupport
)
);
free
(
name
);
for
(
f
=
0
;
f
<
NB_WIN_FORMATS
;
f
++
)
{
...
...
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