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
1081a9b1
Commit
1081a9b1
authored
Jun 13, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Jun 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Use TIME_KILL_SYNCHRONOUS on sound timer.
parent
0130a184
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
dsound.c
dlls/dsound/dsound.c
+2
-4
No files found.
dlls/dsound/dsound.c
View file @
1081a9b1
...
...
@@ -1249,10 +1249,8 @@ ULONG DirectSoundDevice_Release(DirectSoundDevice * device)
int
i
;
timeKillEvent
(
device
->
timerID
);
timeEndPeriod
(
DS_TIME_RES
);
/* wait for timer to expire */
Sleep
(
DS_TIME_RES
+
1
);
/* The
sleep above
should have allowed the timer process to expire
/* The
kill event
should have allowed the timer process to expire
* but try to grab the lock just in case. Can't hold lock because
* IDirectSoundBufferImpl_Destroy also grabs the lock */
RtlAcquireResourceShared
(
&
(
device
->
buffer_list_lock
),
TRUE
);
...
...
@@ -1521,7 +1519,7 @@ HRESULT DirectSoundDevice_Initialize(DirectSoundDevice ** ppDevice, LPCGUID lpcG
DSOUND_renderer
[
device
->
drvdesc
.
dnDevNode
]
=
device
;
timeBeginPeriod
(
DS_TIME_RES
);
DSOUND_renderer
[
device
->
drvdesc
.
dnDevNode
]
->
timerID
=
timeSetEvent
(
DS_TIME_DEL
,
DS_TIME_RES
,
DSOUND_timer
,
(
DWORD_PTR
)
DSOUND_renderer
[
device
->
drvdesc
.
dnDevNode
],
TIME_PERIODIC
|
TIME_CALLBACK_FUNCTION
);
(
DWORD_PTR
)
DSOUND_renderer
[
device
->
drvdesc
.
dnDevNode
],
TIME_PERIODIC
|
TIME_CALLBACK_FUNCTION
|
TIME_KILL_SYNCHRONOUS
);
}
else
{
WARN
(
"DSOUND_PrimaryCreate failed
\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