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
a48c7fe4
Commit
a48c7fe4
authored
Dec 31, 2014
by
Mark Harmstone
Committed by
Alexandre Julliard
Jan 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: NOP on SetSpeakerConfig.
parent
6bab1731
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
dsound.c
dlls/dsound/dsound.c
+2
-2
dsound.c
dlls/dsound/tests/dsound.c
+3
-3
dsound8.c
dlls/dsound/tests/dsound8.c
+3
-3
No files found.
dlls/dsound/dsound.c
View file @
a48c7fe4
...
...
@@ -386,8 +386,8 @@ static HRESULT WINAPI IDirectSound8Impl_SetSpeakerConfig(IDirectSound8 *iface, D
return
DSERR_UNINITIALIZED
;
}
This
->
device
->
speaker_config
=
config
;
WARN
(
"not fully functional
\n
"
);
/* NOP on Vista and above */
return
DS_OK
;
}
...
...
dlls/dsound/tests/dsound.c
View file @
a48c7fe4
...
...
@@ -158,10 +158,10 @@ static void IDirectSound_test(LPDIRECTSOUND dso, BOOL initialized,
if
(
rc
==
DS_OK
)
{
rc
=
IDirectSound_GetSpeakerConfig
(
dso
,
&
new_speaker_config
);
ok
(
rc
==
DS_OK
,
"IDirectSound_GetSpeakerConfig() failed: %08x
\n
"
,
rc
);
if
(
rc
==
DS_OK
&&
speaker_config
!=
new_speaker_config
)
if
(
rc
==
DS_OK
&&
speaker_config
!=
new_speaker_config
&&
ref_speaker_config
!=
new_speaker_config
)
trace
(
"IDirectSound_GetSpeakerConfig() failed to set speaker "
"config: expected 0x%08x, got 0x%08x
\n
"
,
speaker_config
,
new_speaker_config
);
"config: expected 0x%08x
or 0x%08x
, got 0x%08x
\n
"
,
speaker_config
,
ref_speaker_config
,
new_speaker_config
);
IDirectSound_SetSpeakerConfig
(
dso
,
ref_speaker_config
);
}
...
...
dlls/dsound/tests/dsound8.c
View file @
a48c7fe4
...
...
@@ -171,10 +171,10 @@ static void IDirectSound8_test(LPDIRECTSOUND8 dso, BOOL initialized,
if
(
rc
==
DS_OK
)
{
rc
=
IDirectSound8_GetSpeakerConfig
(
dso
,
&
new_speaker_config
);
ok
(
rc
==
DS_OK
,
"IDirectSound8_GetSpeakerConfig() failed: %08x
\n
"
,
rc
);
if
(
rc
==
DS_OK
&&
speaker_config
!=
new_speaker_config
)
if
(
rc
==
DS_OK
&&
speaker_config
!=
new_speaker_config
&&
ref_speaker_config
!=
new_speaker_config
)
trace
(
"IDirectSound8_GetSpeakerConfig() failed to set speaker "
"config: expected 0x%08x, got 0x%08x
\n
"
,
speaker_config
,
new_speaker_config
);
"config: expected 0x%08x
or 0x%08x
, got 0x%08x
\n
"
,
speaker_config
,
ref_speaker_config
,
new_speaker_config
);
IDirectSound8_SetSpeakerConfig
(
dso
,
ref_speaker_config
);
}
...
...
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