Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
05fbe17a
Commit
05fbe17a
authored
Apr 16, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fluidsynth: parse SysEx messages
parent
f749d30b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
modules/codec/fluidsynth.c
modules/codec/fluidsynth.c
+19
-1
No files found.
modules/codec/fluidsynth.c
View file @
05fbe17a
...
...
@@ -179,11 +179,29 @@ static aout_buffer_t *DecodeBlock (decoder_t *p_dec, block_t **pp_block)
if
(
p_block
->
i_buffer
<
1
)
goto
drop
;
uint8_t
event
=
p_block
->
p_buffer
[
0
];
uint8_t
channel
=
p_block
->
p_buffer
[
0
]
&
0xf
;
event
&=
0xF0
;
if
(
event
==
0xF0
)
switch
(
channel
)
{
case
0
:
if
(
p_block
->
p_buffer
[
p_block
->
i_buffer
-
1
]
!=
0xF7
)
{
case
7
:
msg_Warn
(
p_dec
,
"fragmented SysEx not implemented"
);
goto
drop
;
}
fluid_synth_sysex
(
p_sys
->
synth
,
(
char
*
)
p_block
->
p_buffer
+
1
,
p_block
->
i_buffer
-
2
,
NULL
,
NULL
,
NULL
,
0
);
break
;
}
uint8_t
p1
=
(
p_block
->
i_buffer
>
1
)
?
(
p_block
->
p_buffer
[
1
]
&
0x7f
)
:
0
;
uint8_t
p2
=
(
p_block
->
i_buffer
>
2
)
?
(
p_block
->
p_buffer
[
2
]
&
0x7f
)
:
0
;
switch
(
p_block
->
p_buffer
[
0
]
&
0xf
0
)
switch
(
event
&
0xF
0
)
{
case
0x80
:
fluid_synth_noteoff
(
p_sys
->
synth
,
channel
,
p1
);
...
...
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