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
e8c083f9
Commit
e8c083f9
authored
Apr 26, 2007
by
Emmanuel Maillard
Committed by
Alexandre Julliard
Apr 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Implement MIDIIn_Reset.
parent
0da11f99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
midi.c
dlls/winecoreaudio.drv/midi.c
+26
-1
No files found.
dlls/winecoreaudio.drv/midi.c
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
"
);
}
...
...
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