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
0da11f99
Commit
0da11f99
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_Start and MIDIIn_Stop.
parent
63bc9868
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
midi.c
dlls/winecoreaudio.drv/midi.c
+27
-1
No files found.
dlls/winecoreaudio.drv/midi.c
View file @
0da11f99
...
...
@@ -675,6 +675,30 @@ static DWORD MIDIIn_GetNumDevs(void)
return
MIDIIn_NumDevs
;
}
static
DWORD
MIDIIn_Start
(
WORD
wDevID
)
{
TRACE
(
"%d
\n
"
,
wDevID
);
if
(
wDevID
>=
MIDIIn_NumDevs
)
{
WARN
(
"bad device ID : %d
\n
"
,
wDevID
);
return
MMSYSERR_BADDEVICEID
;
}
sources
[
wDevID
].
state
=
1
;
sources
[
wDevID
].
startTime
=
GetTickCount
();
return
MMSYSERR_NOERROR
;
}
static
DWORD
MIDIIn_Stop
(
WORD
wDevID
)
{
TRACE
(
"%d
\n
"
,
wDevID
);
if
(
wDevID
>=
MIDIIn_NumDevs
)
{
WARN
(
"bad device ID : %d
\n
"
,
wDevID
);
return
MMSYSERR_BADDEVICEID
;
}
sources
[
wDevID
].
state
=
0
;
return
MMSYSERR_NOERROR
;
}
/*
* MIDI In Mach message handling
*/
...
...
@@ -811,9 +835,11 @@ DWORD WINAPI CoreAudio_midMessage(UINT wDevID, UINT wMsg, DWORD dwUser, DWORD dw
return
MIDIIn_GetDevCaps
(
wDevID
,
(
LPMIDIINCAPSW
)
dwParam1
,
dwParam2
);
case
MIDM_GETNUMDEVS
:
return
MIDIIn_GetNumDevs
();
case
MIDM_START
:
return
MIDIIn_Start
(
wDevID
);
case
MIDM_STOP
:
return
MIDIIn_Stop
(
wDevID
);
case
MIDM_RESET
:
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