]> git.alsa-project.org Git - alsa-utils.git/commitdiff
arecordmidi2: Fix the tick in 1us tempo-base
authorTakashi Iwai <tiwai@suse.de>
Mon, 8 Jul 2024 15:14:06 +0000 (17:14 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 8 Jul 2024 15:14:06 +0000 (17:14 +0200)
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 <tiwai@suse.de>
seq/aplaymidi2/arecordmidi2.c

index dad7f0a5c00421b6ffe9b2577d9bb038c81799f0..86e2b7b2ef67589ea7d3c3942c2fd5ccc580d432 100644 (file)
@@ -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;
 }