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
9a90a3e8
Commit
9a90a3e8
authored
May 04, 2017
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Properly use SetCooperativeLevel() on the dsound ifaces we create.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f221298e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
performance.c
dlls/dmime/performance.c
+6
-10
No files found.
dlls/dmime/performance.c
View file @
9a90a3e8
...
...
@@ -256,10 +256,6 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_Init(IDirectMusicPerformance8
FIXME
(
"(iface = %p, dmusic = %p, dsound = %p, hwnd = %p)
\n
"
,
This
,
ppDirectMusic
,
pDirectSound
,
hWnd
);
if
(
This
->
pDirectMusic
||
This
->
pDirectSound
)
return
DMUS_E_ALREADY_INITED
;
if
(
NULL
==
hWnd
)
{
hWnd
=
GetForegroundWindow
();
}
if
(
NULL
!=
pDirectSound
)
{
This
->
pDirectSound
=
pDirectSound
;
...
...
@@ -268,12 +264,9 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_Init(IDirectMusicPerformance8
DirectSoundCreate8
(
NULL
,
(
LPDIRECTSOUND8
*
)
&
This
->
pDirectSound
,
NULL
);
if
(
!
This
->
pDirectSound
)
return
DSERR_NODRIVER
;
if
(
NULL
!=
hWnd
)
{
IDirectSound8_SetCooperativeLevel
(
This
->
pDirectSound
,
hWnd
,
DSSCL_PRIORITY
);
}
else
{
/* how to get the ForeGround window handle ? */
/*IDirectSound8_SetCooperativeLevel(This->pDirectSound, hWnd, DSSCL_PRIORITY);*/
}
if
(
!
hWnd
)
hWnd
=
GetForegroundWindow
();
IDirectSound_SetCooperativeLevel
(
This
->
pDirectSound
,
hWnd
,
DSSCL_PRIORITY
);
}
if
(
NULL
!=
ppDirectMusic
&&
NULL
!=
*
ppDirectMusic
)
{
...
...
@@ -917,6 +910,9 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_InitAudio(IDirectMusicPerform
FIXME
(
"return dsound(%p,%d)
\n
"
,
dsound
,
hr
);
if
(
FAILED
(
hr
)
||
!
dsound
)
return
DSERR_NODRIVER
;
if
(
!
hWnd
)
hWnd
=
GetForegroundWindow
();
IDirectSound_SetCooperativeLevel
(
dsound
,
hWnd
,
DSSCL_PRIORITY
);
if
(
ppDirectSound
)
*
ppDirectSound
=
dsound
;
}
...
...
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