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
63bc9868
Commit
63bc9868
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_GetNumDevs and MIDIIn_GetDevCaps.
parent
3930b756
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
midi.c
dlls/winecoreaudio.drv/midi.c
+28
-0
No files found.
dlls/winecoreaudio.drv/midi.c
View file @
63bc9868
...
...
@@ -652,6 +652,28 @@ static DWORD MIDIIn_Close(WORD wDevID)
return
ret
;
}
static
DWORD
MIDIIn_GetDevCaps
(
WORD
wDevID
,
LPMIDIINCAPSW
lpCaps
,
DWORD
dwSize
)
{
TRACE
(
"wDevID=%d lpCaps=%p dwSize=%d
\n
"
,
wDevID
,
lpCaps
,
dwSize
);
if
(
lpCaps
==
NULL
)
{
WARN
(
"Invalid Parameter
\n
"
);
return
MMSYSERR_INVALPARAM
;
}
if
(
wDevID
>=
MIDIIn_NumDevs
)
{
WARN
(
"bad device ID : %d
\n
"
,
wDevID
);
return
MMSYSERR_BADDEVICEID
;
}
memcpy
(
lpCaps
,
&
sources
[
wDevID
].
caps
,
min
(
dwSize
,
sizeof
(
*
lpCaps
)));
return
MMSYSERR_NOERROR
;
}
static
DWORD
MIDIIn_GetNumDevs
(
void
)
{
TRACE
(
"
\n
"
);
return
MIDIIn_NumDevs
;
}
/*
* MIDI In Mach message handling
...
...
@@ -782,8 +804,14 @@ DWORD WINAPI CoreAudio_midMessage(UINT wDevID, UINT wMsg, DWORD dwUser, DWORD dw
case
MIDM_ADDBUFFER
:
case
MIDM_PREPARE
:
case
MIDM_UNPREPARE
:
TRACE
(
"Unsupported message
\n
"
);
return
MMSYSERR_NOTSUPPORTED
;
case
MIDM_GETDEVCAPS
:
return
MIDIIn_GetDevCaps
(
wDevID
,
(
LPMIDIINCAPSW
)
dwParam1
,
dwParam2
);
case
MIDM_GETNUMDEVS
:
return
MIDIIn_GetNumDevs
();
case
MIDM_START
:
case
MIDM_STOP
:
case
MIDM_RESET
:
...
...
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