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
6c4d9448
Commit
6c4d9448
authored
Apr 19, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Skip the sound checks on the primary module and change its driver module to "".
parent
430a46fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
dsound_main.c
dlls/dsound/dsound_main.c
+4
-5
dsound.c
dlls/dsound/tests/dsound.c
+10
-0
No files found.
dlls/dsound/dsound_main.c
View file @
6c4d9448
...
@@ -311,8 +311,8 @@ HRESULT WINAPI DirectSoundEnumerateA(
...
@@ -311,8 +311,8 @@ HRESULT WINAPI DirectSoundEnumerateA(
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(NULL,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
TRACE
(
"calling lpDSEnumCallback(NULL,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
"Primary Sound Driver"
,
desc
.
szDrvname
,
lpContext
);
"Primary Sound Driver"
,
""
,
lpContext
);
if
(
lpDSEnumCallback
(
NULL
,
"Primary Sound Driver"
,
desc
.
szDrvname
,
lpContext
)
==
FALSE
)
if
(
lpDSEnumCallback
(
NULL
,
"Primary Sound Driver"
,
""
,
lpContext
)
==
FALSE
)
return
DS_OK
;
return
DS_OK
;
}
}
}
}
...
@@ -367,6 +367,7 @@ HRESULT WINAPI DirectSoundEnumerateW(
...
@@ -367,6 +367,7 @@ HRESULT WINAPI DirectSoundEnumerateW(
devs
=
waveOutGetNumDevs
();
devs
=
waveOutGetNumDevs
();
if
(
devs
>
0
)
{
if
(
devs
>
0
)
{
if
(
GetDeviceID
(
&
DSDEVID_DefaultPlayback
,
&
guid
)
==
DS_OK
)
{
if
(
GetDeviceID
(
&
DSDEVID_DefaultPlayback
,
&
guid
)
==
DS_OK
)
{
static
const
WCHAR
empty
[]
=
{
0
};
for
(
wod
=
0
;
wod
<
devs
;
++
wod
)
{
for
(
wod
=
0
;
wod
<
devs
;
++
wod
)
{
if
(
IsEqualGUID
(
&
guid
,
&
DSOUND_renderer_guids
[
wod
]
)
)
{
if
(
IsEqualGUID
(
&
guid
,
&
DSOUND_renderer_guids
[
wod
]
)
)
{
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
...
@@ -375,9 +376,7 @@ HRESULT WINAPI DirectSoundEnumerateW(
...
@@ -375,9 +376,7 @@ HRESULT WINAPI DirectSoundEnumerateW(
"Primary Sound Driver"
,
desc
.
szDrvname
,
lpContext
);
"Primary Sound Driver"
,
desc
.
szDrvname
,
lpContext
);
MultiByteToWideChar
(
CP_ACP
,
0
,
"Primary Sound Driver"
,
-
1
,
MultiByteToWideChar
(
CP_ACP
,
0
,
"Primary Sound Driver"
,
-
1
,
wDesc
,
sizeof
(
wDesc
)
/
sizeof
(
WCHAR
)
);
wDesc
,
sizeof
(
wDesc
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrvname
,
-
1
,
if
(
lpDSEnumCallback
(
NULL
,
wDesc
,
empty
,
lpContext
)
==
FALSE
)
wName
,
sizeof
(
wName
)
/
sizeof
(
WCHAR
)
);
if
(
lpDSEnumCallback
(
NULL
,
wDesc
,
wName
,
lpContext
)
==
FALSE
)
return
DS_OK
;
return
DS_OK
;
}
}
}
}
...
...
dlls/dsound/tests/dsound.c
View file @
6c4d9448
...
@@ -1002,11 +1002,21 @@ EXIT:
...
@@ -1002,11 +1002,21 @@ EXIT:
return
rc
;
return
rc
;
}
}
static
unsigned
int
number
;
static
BOOL
WINAPI
dsenum_callback
(
LPGUID
lpGuid
,
LPCSTR
lpcstrDescription
,
static
BOOL
WINAPI
dsenum_callback
(
LPGUID
lpGuid
,
LPCSTR
lpcstrDescription
,
LPCSTR
lpcstrModule
,
LPVOID
lpContext
)
LPCSTR
lpcstrModule
,
LPVOID
lpContext
)
{
{
HRESULT
rc
;
HRESULT
rc
;
trace
(
"*** Testing %s - %s ***
\n
"
,
lpcstrDescription
,
lpcstrModule
);
trace
(
"*** Testing %s - %s ***
\n
"
,
lpcstrDescription
,
lpcstrModule
);
/* Don't test the primary device */
if
(
!
number
++
)
{
ok
(
!
lpcstrModule
[
0
],
"lpcstrModule(%s) != NULL
\n
"
,
lpcstrModule
);
return
1
;
}
rc
=
test_dsound
(
lpGuid
);
rc
=
test_dsound
(
lpGuid
);
if
(
rc
==
DSERR_NODRIVER
)
if
(
rc
==
DSERR_NODRIVER
)
trace
(
" No Driver
\n
"
);
trace
(
" No Driver
\n
"
);
...
...
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