aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2024-05-21 17:12:01 +0300
committerWohlstand <admin@wohlnet.ru>2024-05-21 17:12:01 +0300
commit1aaef3b46620efcfe8da955d6262016fca5ae187 (patch)
treed25b5b35fc26be29457928f1ce3ff75652e479a5 /utils
parent2309ed8575f2267fc5ee250377982ae07364e40b (diff)
downloadlibADLMIDI-1aaef3b46620efcfe8da955d6262016fca5ae187.tar.gz
libADLMIDI-1aaef3b46620efcfe8da955d6262016fca5ae187.tar.bz2
libADLMIDI-1aaef3b46620efcfe8da955d6262016fca5ae187.zip
VLC plugin: Fixed the delay value for events processing
Diffstat (limited to 'utils')
-rw-r--r--utils/vlc_codec/libadlmidi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/vlc_codec/libadlmidi.c b/utils/vlc_codec/libadlmidi.c
index ee1cf51..be8664e 100644
--- a/utils/vlc_codec/libadlmidi.c
+++ b/utils/vlc_codec/libadlmidi.c
@@ -474,7 +474,7 @@ static block_t *DecodeBlock (decoder_t *p_dec, block_t **pp_block)
unsigned samples = (p_block->i_pts - date_Get (&p_sys->end_date)) * 441 / 10000;
#ifdef ADLMIDI_ENABLE_HW_SERIAL
- double delay = (p_block->i_pts - date_Get (&p_sys->end_date)) / 1000000.0;
+ double delay = ((p_block->i_pts - date_Get (&p_sys->end_date)) / 1000000.0) / 2.0;
#endif
if (samples == 0)