diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2017-12-16 21:39:37 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2017-12-16 21:39:37 +0300 |
commit | 3be5100089a7cdb44a72af6761c6c3f0250e7f5a (patch) | |
tree | ef1e0aea5eefabcecaf9a622f3b808a5e1cbfd5a /utils/vlc_codec | |
parent | 15d34319029496a5111d94f253ca7f7b25741c8b (diff) | |
download | libADLMIDI-3be5100089a7cdb44a72af6761c6c3f0250e7f5a.tar.gz libADLMIDI-3be5100089a7cdb44a72af6761c6c3f0250e7f5a.tar.bz2 libADLMIDI-3be5100089a7cdb44a72af6761c6c3f0250e7f5a.zip |
Fixed pitch bend in VLC plugin
Diffstat (limited to 'utils/vlc_codec')
-rw-r--r-- | utils/vlc_codec/libadlmidi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/utils/vlc_codec/libadlmidi.c b/utils/vlc_codec/libadlmidi.c index 4a86b64..a978603 100644 --- a/utils/vlc_codec/libadlmidi.c +++ b/utils/vlc_codec/libadlmidi.c @@ -175,9 +175,7 @@ static block_t *DecodeBlock (decoder_t *p_dec, block_t **pp_block) if (p_block->i_flags & (BLOCK_FLAG_DISCONTINUITY|BLOCK_FLAG_CORRUPTED)) { date_Set (&p_sys->end_date, 0); - //fluid_synth_system_reset (p_sys->synth); adl_panic(p_sys->synth); - adl_rt_resetState(p_sys->synth); } if (p_block->i_pts > VLC_TS_INVALID && !date_Get (&p_sys->end_date)) @@ -236,7 +234,7 @@ static block_t *DecodeBlock (decoder_t *p_dec, block_t **pp_block) adl_rt_channelAfterTouch(p_sys->synth, channel, p1); break; case 0xE0: - adl_rt_pitchBend(p_sys->synth, channel, (p2 << 7) | p1); + adl_rt_pitchBendML(p_sys->synth, channel, p2, p2); break; } |