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
d8ccfafd
Commit
d8ccfafd
authored
Jun 12, 2011
by
Stephane Bacri
Committed by
Alexandre Julliard
Jun 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa.drv: Add midi MTC Quarter Frame messages support.
parent
754df821
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
midi.c
dlls/winealsa.drv/midi.c
+6
-3
No files found.
dlls/winealsa.drv/midi.c
View file @
d8ccfafd
...
...
@@ -362,14 +362,17 @@ static DWORD WINAPI midRecThread(LPVOID arg)
toSend
=
0xFC
;
break
;
case
SND_SEQ_EVENT_SONGPOS
:
toSend
=
(((
ev
->
data
.
control
.
value
>>
7
)
&
0x7f
)
<<
16
)
|
((
ev
->
data
.
control
.
value
&
0x7f
)
<<
8
)
|
0xF2
;
toSend
=
(((
ev
->
data
.
control
.
value
>>
7
)
&
0x7f
)
<<
16
)
|
((
ev
->
data
.
control
.
value
&
0x7f
)
<<
8
)
|
MIDI_CMD_COMMON_SONG_POS
;
break
;
case
SND_SEQ_EVENT_SONGSEL
:
toSend
=
((
ev
->
data
.
control
.
value
&
0x7f
)
<<
8
)
|
0xF3
;
toSend
=
((
ev
->
data
.
control
.
value
&
0x7f
)
<<
8
)
|
MIDI_CMD_COMMON_SONG_SELECT
;
break
;
case
SND_SEQ_EVENT_RESET
:
toSend
=
0xFF
;
break
;
case
SND_SEQ_EVENT_QFRAME
:
toSend
=
((
ev
->
data
.
control
.
value
&
0x7f
)
<<
8
)
|
MIDI_CMD_COMMON_MTC_QUARTER
;
break
;
case
SND_SEQ_EVENT_SYSEX
:
{
int
pos
=
0
;
...
...
@@ -864,7 +867,6 @@ static DWORD modData(WORD wDevID, DWORD dwParam)
switch
(
evt
&
0x0F
)
{
case
0x00
:
/* System Exclusive, don't do it on modData,
* should require modLongData*/
case
0x01
:
/* Undefined */
case
0x04
:
/* Undefined. */
case
0x05
:
/* Undefined. */
case
0x07
:
/* End of Exclusive. */
...
...
@@ -890,6 +892,7 @@ static DWORD modData(WORD wDevID, DWORD dwParam)
snd_seq_ev_set_sysex
(
&
event
,
sizeof
(
reset_sysex_seq
),
reset_sysex_seq
);
}
break
;
case
0x01
:
/* MTC Quarter frame */
case
0x03
:
/* Song Select. */
{
BYTE
buf
[
2
];
...
...
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