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
9369c37a
Commit
9369c37a
authored
Apr 27, 2007
by
Emmanuel Maillard
Committed by
Alexandre Julliard
Apr 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Handle non System Exclusive messages.
parent
98528332
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
1 deletion
+50
-1
midi.c
dlls/winecoreaudio.drv/midi.c
+50
-1
No files found.
dlls/winecoreaudio.drv/midi.c
View file @
9369c37a
...
...
@@ -842,8 +842,10 @@ static CFDataRef MIDIIn_MessageHandler(CFMessagePortRef local, SInt32 msgid, CFD
{
MIDIMessage
*
msg
=
NULL
;
int
i
=
0
;
FIXME
(
"
\n
"
);
MIDISource
*
src
=
NULL
;
DWORD
sendData
=
0
;
TRACE
(
"
\n
"
);
switch
(
msgid
)
{
case
0
:
...
...
@@ -853,11 +855,58 @@ static CFDataRef MIDIIn_MessageHandler(CFMessagePortRef local, SInt32 msgid, CFD
TRACE
(
"%02X "
,
msg
->
data
[
i
]);
}
TRACE
(
"
\n
"
);
src
=
&
sources
[
msg
->
devID
];
if
(
src
->
state
<
1
)
{
TRACE
(
"input not started, thrown away
\n
"
);
goto
done
;
}
/* FIXME skipping SysEx */
if
(
msg
->
data
[
0
]
==
0xF0
)
{
FIXME
(
"Starting System Exclusive
\n
"
);
src
->
state
|=
2
;
for
(
i
=
0
;
i
<
msg
->
length
;
++
i
)
{
if
(
msg
->
data
[
i
]
==
0xF7
)
{
FIXME
(
"Ending System Exclusive
\n
"
);
src
->
state
&=
~
2
;
}
}
goto
done
;
}
if
(
src
->
state
&
2
)
{
for
(
i
=
0
;
i
<
msg
->
length
;
++
i
)
{
if
(
msg
->
data
[
i
]
==
0xF7
)
{
FIXME
(
"Ending System Exclusive
\n
"
);
src
->
state
&=
~
2
;
}
}
goto
done
;
}
EnterCriticalSection
(
&
midiInLock
);
if
(
msg
->
length
==
3
)
{
sendData
=
(
msg
->
data
[
2
]
<<
16
)
|
(
msg
->
data
[
1
]
<<
8
)
|
(
msg
->
data
[
0
]
<<
0
);
}
if
(
msg
->
length
==
2
)
{
sendData
=
(
msg
->
data
[
1
]
<<
8
)
|
(
msg
->
data
[
0
]
<<
0
);
}
MIDI_NotifyClient
(
msg
->
devID
,
MIM_DATA
,
sendData
,
GetTickCount
()
-
src
->
startTime
);
LeaveCriticalSection
(
&
midiInLock
);
break
;
default:
CFRunLoopStop
(
CFRunLoopGetCurrent
());
break
;
}
done:
return
NULL
;
}
...
...
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