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
0e3629c3
Commit
0e3629c3
authored
Jul 22, 2004
by
Robert Reif
Committed by
Alexandre Julliard
Jul 22, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dump DirectSound capabilities flags.
parent
aa60b5ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
dsound.c
dlls/dsound/dsound.c
+31
-1
No files found.
dlls/dsound/dsound.c
View file @
0e3629c3
...
...
@@ -76,6 +76,32 @@ static const char * dumpCooperativeLevel(DWORD level)
return
unknown
;
}
static
void
_dump_DSCAPS
(
DWORD
xmask
)
{
struct
{
DWORD
mask
;
char
*
name
;
}
flags
[]
=
{
#define FE(x) { x, #x },
FE
(
DSCAPS_PRIMARYMONO
)
FE
(
DSCAPS_PRIMARYSTEREO
)
FE
(
DSCAPS_PRIMARY8BIT
)
FE
(
DSCAPS_PRIMARY16BIT
)
FE
(
DSCAPS_CONTINUOUSRATE
)
FE
(
DSCAPS_EMULDRIVER
)
FE
(
DSCAPS_CERTIFIED
)
FE
(
DSCAPS_SECONDARYMONO
)
FE
(
DSCAPS_SECONDARYSTEREO
)
FE
(
DSCAPS_SECONDARY8BIT
)
FE
(
DSCAPS_SECONDARY16BIT
)
#undef FE
};
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
flags
)
/
sizeof
(
flags
[
0
]);
i
++
)
if
((
flags
[
i
].
mask
&
xmask
)
==
flags
[
i
].
mask
)
DPRINTF
(
"%s "
,
flags
[
i
].
name
);
}
static
void
_dump_DSBCAPS
(
DWORD
xmask
)
{
struct
{
DWORD
mask
;
...
...
@@ -401,8 +427,12 @@ static HRESULT WINAPI IDirectSoundImpl_GetCaps(
return
DSERR_INVALIDPARAM
;
}
TRACE
(
"(flags=0x%08lx)
\n
"
,
lpDSCaps
->
dwFlags
);
lpDSCaps
->
dwFlags
=
This
->
drvcaps
.
dwFlags
;
if
(
TRACE_ON
(
dsound
))
{
TRACE
(
"(flags=0x%08lx:
\n
"
,
lpDSCaps
->
dwFlags
);
_dump_DSCAPS
(
lpDSCaps
->
dwFlags
);
DPRINTF
(
")
\n
"
);
}
lpDSCaps
->
dwMinSecondarySampleRate
=
This
->
drvcaps
.
dwMinSecondarySampleRate
;
lpDSCaps
->
dwMaxSecondarySampleRate
=
This
->
drvcaps
.
dwMaxSecondarySampleRate
;
lpDSCaps
->
dwPrimaryBuffers
=
This
->
drvcaps
.
dwPrimaryBuffers
;
...
...
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