Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Danyil Blyschak
wine
Commits
e8c083f9
Commit
e8c083f9
authored
17 years ago
by
Emmanuel Maillard
Committed by
Alexandre Julliard
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
winecoreaudio: Implement MIDIIn_Reset.
parent
0da11f99
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/winecoreaudio.drv/midi.c
+26
-1
26 additions, 1 deletion
dlls/winecoreaudio.drv/midi.c
with
26 additions
and
1 deletion
dlls/winecoreaudio.drv/midi.c
+
26
−
1
View file @
e8c083f9
...
...
@@ -699,6 +699,31 @@ static DWORD MIDIIn_Stop(WORD wDevID)
return
MMSYSERR_NOERROR
;
}
static
DWORD
MIDIIn_Reset
(
WORD
wDevID
)
{
DWORD
dwTime
=
GetTickCount
();
TRACE
(
"%d
\n
"
,
wDevID
);
if
(
wDevID
>=
MIDIIn_NumDevs
)
{
WARN
(
"bad device ID : %d
\n
"
,
wDevID
);
return
MMSYSERR_BADDEVICEID
;
}
EnterCriticalSection
(
&
midiInLock
);
while
(
sources
[
wDevID
].
lpQueueHdr
)
{
sources
[
wDevID
].
lpQueueHdr
->
dwFlags
&=
~
MHDR_INQUEUE
;
sources
[
wDevID
].
lpQueueHdr
->
dwFlags
|=
MHDR_DONE
;
/* FIXME: when called from 16 bit, lpQueueHdr needs to be a segmented ptr */
if
(
MIDI_NotifyClient
(
wDevID
,
MIM_LONGDATA
,
(
DWORD
)
sources
[
wDevID
].
lpQueueHdr
,
dwTime
)
!=
MMSYSERR_NOERROR
)
{
WARN
(
"Couldn't notify client
\n
"
);
}
sources
[
wDevID
].
lpQueueHdr
=
(
LPMIDIHDR
)
sources
[
wDevID
].
lpQueueHdr
->
lpNext
;
}
LeaveCriticalSection
(
&
midiInLock
);
return
MMSYSERR_NOERROR
;
}
/*
* MIDI In Mach message handling
*/
...
...
@@ -839,8 +864,8 @@ DWORD WINAPI CoreAudio_midMessage(UINT wDevID, UINT wMsg, DWORD dwUser, DWORD dw
return
MIDIIn_Start
(
wDevID
);
case
MIDM_STOP
:
return
MIDIIn_Stop
(
wDevID
);
case
MIDM_RESET
:
return
MIDIIn_Reset
(
wDevID
);
default:
TRACE
(
"Unsupported message
\n
"
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment