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
df0dd9ab
Commit
df0dd9ab
authored
Jun 20, 2000
by
Ove Kaaven
Committed by
Alexandre Julliard
Jun 20, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed WHDR_DONE race condition.
parent
11ab5b90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
audio.c
dlls/winmm/wineoss/audio.c
+7
-7
No files found.
dlls/winmm/wineoss/audio.c
View file @
df0dd9ab
...
...
@@ -475,12 +475,12 @@ static void wodPlayer_Notify(WINE_WAVEOUT* wwo, WORD uDevID, BOOL force)
if
(
lpWaveHdr
->
reserved
>
tc
&&
!
force
)
break
;
wwo
->
dwPlayedTotal
+=
lpWaveHdr
->
dwBufferLength
;
wwo
->
lpQueuePtr
=
lpWaveHdr
->
lpNext
;
lpWaveHdr
->
dwFlags
&=
~
WHDR_INQUEUE
;
lpWaveHdr
->
dwFlags
|=
WHDR_DONE
;
wwo
->
dwPlayedTotal
+=
lpWaveHdr
->
dwBufferLength
;
wwo
->
lpQueuePtr
=
lpWaveHdr
->
lpNext
;
TRACE
(
"Notifying client with %p
\n
"
,
lpWaveHdr
);
if
(
OSS_NotifyClient
(
uDevID
,
WOM_DONE
,
(
DWORD
)
lpWaveHdr
,
0
)
!=
MMSYSERR_NOERROR
)
{
WARN
(
"can't notify client !
\n
"
);
...
...
@@ -574,10 +574,6 @@ static DWORD CALLBACK wodPlayer(LPVOID pmt)
case
WINE_WM_HEADER
:
lpWaveHdr
=
(
LPWAVEHDR
)
msg
.
lParam
;
lpWaveHdr
->
dwFlags
&=
~
WHDR_DONE
;
lpWaveHdr
->
dwFlags
|=
WHDR_INQUEUE
;
lpWaveHdr
->
lpNext
=
0
;
/* insert buffer at the end of queue */
{
LPWAVEHDR
*
wh
;
...
...
@@ -802,6 +798,10 @@ static DWORD wodWrite(WORD wDevID, LPWAVEHDR lpWaveHdr, DWORD dwSize)
if
(
lpWaveHdr
->
dwFlags
&
WHDR_INQUEUE
)
return
WAVERR_STILLPLAYING
;
lpWaveHdr
->
dwFlags
&=
~
WHDR_DONE
;
lpWaveHdr
->
dwFlags
|=
WHDR_INQUEUE
;
lpWaveHdr
->
lpNext
=
0
;
TRACE
(
"imhere[3-HEADER]
\n
"
);
PostThreadMessageA
(
WOutDev
[
wDevID
].
dwThreadID
,
WINE_WM_HEADER
,
0
,
(
DWORD
)
lpWaveHdr
);
...
...
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