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
2aba972a
Commit
2aba972a
authored
Nov 12, 2003
by
Christian Costa
Committed by
Alexandre Julliard
Nov 12, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Alsa midi fixes.
parent
a628c13e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
midi.c
dlls/winmm/winealsa/midi.c
+6
-0
No files found.
dlls/winmm/winealsa/midi.c
View file @
2aba972a
...
...
@@ -647,6 +647,7 @@ static DWORD modClose(WORD wDevID)
switch
(
MidiOutDev
[
wDevID
].
caps
.
wTechnology
)
{
case
MOD_FMSYNTH
:
case
MOD_MIDIPORT
:
case
MOD_SYNTH
:
snd_seq_disconnect_to
(
midiSeq
,
port_out
,
MidiOutDev
[
wDevID
].
addr
.
client
,
MidiOutDev
[
wDevID
].
addr
.
port
);
midiCloseSeq
();
break
;
...
...
@@ -695,6 +696,9 @@ static DWORD modData(WORD wDevID, DWORD dwParam)
int
handled
=
1
;
/* Assume event is handled */
snd_seq_event_t
event
;
snd_seq_ev_clear
(
&
event
);
snd_seq_ev_set_direct
(
&
event
);
snd_seq_ev_set_source
(
&
event
,
port_out
);
snd_seq_ev_set_dest
(
&
event
,
MidiOutDev
[
wDevID
].
addr
.
client
,
MidiOutDev
[
wDevID
].
addr
.
port
);
switch
(
evt
&
0xF0
)
{
case
MIDI_CMD_NOTE_OFF
:
...
...
@@ -755,6 +759,7 @@ static DWORD modData(WORD wDevID, DWORD dwParam)
buf
[
1
]
=
d1
;
snd_seq_ev_set_sysex
(
&
event
,
sizeof
(
buf
),
buf
);
}
break
;
case
0x02
:
/* Song Position Pointer. */
{
BYTE
buf
[
3
];
...
...
@@ -763,6 +768,7 @@ static DWORD modData(WORD wDevID, DWORD dwParam)
buf
[
2
]
=
d2
;
snd_seq_ev_set_sysex
(
&
event
,
sizeof
(
buf
),
buf
);
}
break
;
}
break
;
}
...
...
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