From 2ee6c170a837dc68a90d8bb7e424ab55e1127452 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 8 Jul 2024 17:14:06 +0200 Subject: [PATCH] arecordmidi2: Fix the tick in 1us tempo-base The recorded tick is incorrectly converted for 1us tempo-base on the old kernels. Since we correct the queue tempo, we don't have to adjust the returned tick value any longer. The current code applies it doubly, resulting in 100 times slower. Signed-off-by: Takashi Iwai --- seq/aplaymidi2/arecordmidi2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/seq/aplaymidi2/arecordmidi2.c b/seq/aplaymidi2/arecordmidi2.c index dad7f0a..86e2b7b 100644 --- a/seq/aplaymidi2/arecordmidi2.c +++ b/seq/aplaymidi2/arecordmidi2.c @@ -321,8 +321,6 @@ static void delta_time(FILE *file, const snd_seq_ump_event_t *ev) if (diff <= 0) return; - if (tempo_base == 1000) - diff *= 100; write_dcs(file, diff); last_tick = ev->time.tick; }