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
738e2461
Commit
738e2461
authored
May 29, 2001
by
Huw D M Davies
Committed by
Alexandre Julliard
May 29, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attempt to write fragments and check whether we can notify the client
after every message.
parent
784fd59e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
audio.c
dlls/winmm/wineoss/audio.c
+18
-6
No files found.
dlls/winmm/wineoss/audio.c
View file @
738e2461
...
...
@@ -642,6 +642,7 @@ static DWORD CALLBACK wodPlayer(LPVOID pmt)
int
msg
;
DWORD
param
;
DWORD
tc
;
BOOL
had_msg
;
wwo
->
state
=
WINE_WS_STOPPED
;
...
...
@@ -678,11 +679,14 @@ static DWORD CALLBACK wodPlayer(LPVOID pmt)
dwSleepTime
=
0
;
}
TRACE
(
"imhere[1]
\n
"
);
TRACE
(
"imhere[1]
tc = %08lx
\n
"
,
GetTickCount
()
);
if
(
dwSleepTime
)
WaitForSingleObject
(
wwo
->
msg_event
,
dwSleepTime
);
TRACE
(
"imhere[2] (q=%p p=%p)
\n
"
,
wwo
->
lpQueuePtr
,
wwo
->
lpPlayPtr
);
WaitForSingleObject
(
wwo
->
msg_event
,
dwSleepTime
);
TRACE
(
"imhere[2] (q=%p p=%p) tc = %08lx
\n
"
,
wwo
->
lpQueuePtr
,
wwo
->
lpPlayPtr
,
GetTickCount
());
had_msg
=
FALSE
;
while
(
wodPlayer_RetrieveMessage
(
wwo
,
&
msg
,
&
param
))
{
had_msg
=
TRUE
;
switch
(
msg
)
{
case
WINE_WM_PAUSING
:
wodPlayer_Reset
(
wwo
,
uDevID
,
FALSE
);
...
...
@@ -722,11 +726,19 @@ static DWORD CALLBACK wodPlayer(LPVOID pmt)
FIXME
(
"unknown message %d
\n
"
,
msg
);
break
;
}
if
(
wwo
->
state
==
WINE_WS_PLAYING
)
{
wodPlayer_WriteFragments
(
wwo
);
}
wodPlayer_Notify
(
wwo
,
uDevID
,
FALSE
);
}
if
(
wwo
->
state
==
WINE_WS_PLAYING
)
{
wodPlayer_WriteFragments
(
wwo
);
if
(
!
had_msg
)
{
/* if we've received a msg we've just done this so we
won't repeat it */
if
(
wwo
->
state
==
WINE_WS_PLAYING
)
{
wodPlayer_WriteFragments
(
wwo
);
}
wodPlayer_Notify
(
wwo
,
uDevID
,
FALSE
);
}
wodPlayer_Notify
(
wwo
,
uDevID
,
FALSE
);
}
ExitThread
(
0
);
/* just for not generating compilation warnings... should never be executed */
...
...
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