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
708eaaa6
Commit
708eaaa6
authored
Nov 14, 2009
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Implement DirectSoundCaptureEnumerateA on top of DirectSoundCaptureEnumerateW.
parent
03c16aab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
36 deletions
+6
-36
dsound_main.c
dlls/dsound/dsound_main.c
+6
-36
No files found.
dlls/dsound/dsound_main.c
View file @
708eaaa6
...
...
@@ -400,51 +400,21 @@ HRESULT WINAPI DirectSoundEnumerateW(
* Success: DS_OK
* Failure: DSERR_INVALIDPARAM
*/
HRESULT
WINAPI
DirectSoundCaptureEnumerateA
(
HRESULT
WINAPI
DirectSoundCaptureEnumerateA
(
LPDSENUMCALLBACKA
lpDSEnumCallback
,
LPVOID
lpContext
)
{
unsigned
devs
,
wid
;
DSDRIVERDESC
desc
;
GUID
guid
;
int
err
;
TRACE
(
"(%p,%p)
\n
"
,
lpDSEnumCallback
,
lpContext
);
struct
morecontext
context
;
if
(
lpDSEnumCallback
==
NULL
)
{
WARN
(
"invalid parameter: lpDSEnumCallback == NULL
\n
"
);
WARN
(
"invalid parameter: lpDSEnumCallback == NULL
\n
"
);
return
DSERR_INVALIDPARAM
;
}
devs
=
waveInGetNumDevs
();
if
(
devs
>
0
)
{
if
(
GetDeviceID
(
&
DSDEVID_DefaultCapture
,
&
guid
)
==
DS_OK
)
{
for
(
wid
=
0
;
wid
<
devs
;
++
wid
)
{
if
(
IsEqualGUID
(
&
guid
,
&
DSOUND_capture_guids
[
wid
]
)
)
{
err
=
mmErr
(
waveInMessage
(
UlongToHandle
(
wid
),
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(NULL,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
"Primary Sound Capture Driver"
,
desc
.
szDrvname
,
lpContext
);
if
(
lpDSEnumCallback
(
NULL
,
"Primary Sound Capture Driver"
,
desc
.
szDrvname
,
lpContext
)
==
FALSE
)
return
DS_OK
;
}
}
}
}
}
for
(
wid
=
0
;
wid
<
devs
;
++
wid
)
{
err
=
mmErr
(
waveInMessage
(
UlongToHandle
(
wid
),
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(%s,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
debugstr_guid
(
&
DSOUND_capture_guids
[
wid
]),
desc
.
szDesc
,
desc
.
szDrvname
,
lpContext
);
if
(
lpDSEnumCallback
(
&
DSOUND_capture_guids
[
wid
],
desc
.
szDesc
,
desc
.
szDrvname
,
lpContext
)
==
FALSE
)
return
DS_OK
;
}
}
context
.
callA
=
lpDSEnumCallback
;
context
.
data
=
lpContext
;
return
D
S_OK
;
return
D
irectSoundCaptureEnumerateW
(
a_to_w_callback
,
&
context
)
;
}
/***************************************************************************
...
...
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