audio/alsa-utils: aplaymidi doesn't play at the proper tempo

Add temporary patch to fix an issue with tempo events

aplaymidi does not process tempo events because the part
that handles tempo events was not rewritten sufficiently.
It may be executed as a different event in songs that
have tempo changes in the middle of the song.

A similar fix was submitted to upstream as
https://github.com/alsa-project/alsa-utils/issues/241

PR:		275349
Reported by:	Tatsuki Makino <tatsuki_makino@hotmail.com>
This commit is contained in:
Rodrigo Osorio 2023-11-29 21:44:12 +01:00
parent c3e950e155
commit f05f058867
2 changed files with 12 additions and 0 deletions

View file

@ -1,5 +1,6 @@
PORTNAME= alsa-utils
PORTVERSION= 1.2.10
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= https://www.alsa-project.org/files/pub/utils/

View file

@ -0,0 +1,11 @@
--- seq/aplaymidi/aplaymidi.c.orig 2023-09-01 15:36:26 UTC
+++ seq/aplaymidi/aplaymidi.c
@@ -819,6 +819,8 @@ static void play_midi(void)
ev.time.tick = event->tick;
ev.dest = ports[event->port];
if (event->type == SND_SEQ_EVENT_TEMPO) {
+ snd_seq_ev_set_fixed(&ev);
+ ev.type = event->type;
ev.dest.client = SND_SEQ_CLIENT_SYSTEM;
ev.dest.port = SND_SEQ_PORT_SYSTEM_TIMER;
ev.data.queue.queue = queue;