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
310b2a51
Commit
310b2a51
authored
Oct 01, 2012
by
Jörg Höhle
Committed by
Alexandre Julliard
Oct 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciseq: Send MCI_PLAY notifications like w2k-w7 do.
parent
010019df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
mcimidi.c
dlls/mciseq/mcimidi.c
+8
-3
No files found.
dlls/mciseq/mcimidi.c
View file @
310b2a51
...
...
@@ -1150,13 +1150,18 @@ static DWORD MIDI_mciPlay(WINE_MCIMIDI* wmm, DWORD dwFlags, LPMCI_PLAY_PARMS lpP
MIDI_mciStop
(
wmm
,
MCI_WAIT
,
NULL
);
wmm
->
dwPositionMS
=
dwStartMS
;
}
/* else use existing player. */
if
(
wmm
->
dwEndMS
!=
dwEndMS
)
{
oldcb
=
InterlockedExchangePointer
(
&
wmm
->
hCallback
,
NULL
);
if
(
oldcb
)
mciDriverNotify
(
oldcb
,
wmm
->
wDevID
,
MCI_NOTIFY_ABORTED
);
wmm
->
dwEndMS
=
dwEndMS
;
}
TRACE
(
"Playing from %u to %u
\n
"
,
dwStartMS
,
dwEndMS
);
oldcb
=
InterlockedExchangePointer
(
&
wmm
->
hCallback
,
(
dwFlags
&
MCI_NOTIFY
)
?
HWND_32
(
LOWORD
(
lpParms
->
dwCallback
))
:
NULL
);
if
(
oldcb
)
mciDriverNotify
(
oldcb
,
wmm
->
wDevID
,
MCI_NOTIFY_ABORTED
);
if
((
dwFlags
&
MCI_NOTIFY
)
&&
lpParms
)
{
oldcb
=
InterlockedExchangePointer
(
&
wmm
->
hCallback
,
HWND_32
(
LOWORD
(
lpParms
->
dwCallback
)));
if
(
oldcb
)
mciDriverNotify
(
oldcb
,
wmm
->
wDevID
,
MCI_NOTIFY_SUPERSEDED
);
}
dwRet
=
ensurePlayerThread
(
wmm
);
...
...
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