From: Takashi Iwai Date: Mon, 8 Jul 2024 15:14:06 +0000 (+0200) Subject: arecordmidi2: Fix the tick in 1us tempo-base X-Git-Tag: v1.2.13~48 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=2ee6c170a837dc68a90d8bb7e424ab55e1127452;p=alsa-utils.git 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 --- 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; }