timidity: fix playing over JACK with -iA -Oj

Based on https://bugs.archlinux.org/task/40906#comment124519
This commit is contained in:
Orivej Desh 2020-03-25 22:53:12 +00:00
parent 87f75f8e35
commit c2f5006735
2 changed files with 16 additions and 0 deletions

View file

@ -8,6 +8,8 @@ stdenv.mkDerivation {
sha256 = "1xf8n6dqzvi6nr2asags12ijbj1lwk1hgl3s27vm2szib8ww07qn";
};
patches = [ ./timidity-iA-Oj.patch ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ alsaLib libjack2 ncurses ];

View file

@ -0,0 +1,14 @@
Without this timidity -iA -Oj prints "Couldn't start JACK device (`j')"
and does not play MIDI.
--- a/timidity/jack_a.c
+++ b/timidity/jack_a.c
@@ -513,6 +513,8 @@ static int actl_jack(int request, void *arg)
ringbuf_clear(&ctx->rbuf);
return 0;
+ case PM_REQ_PLAY_START:
+ return 0;
}
return -1;
}