Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
2aba972a
Commit
2aba972a
authored
21 years ago
by
Christian Costa
Committed by
Alexandre Julliard
21 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Alsa midi fixes.
parent
a628c13e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/winmm/winealsa/midi.c
+6
-0
6 additions, 0 deletions
dlls/winmm/winealsa/midi.c
with
6 additions
and
0 deletions
dlls/winmm/winealsa/midi.c
+
6
−
0
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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment