1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/audio/rosegarden/files/patch-ak
Chris Piazza 2e1fdeb9e0 - Update to 2.1pl2.
- Move Petal.so back into ${PREFIX}/lib/rosegarden/petal
- Install a wrapper script that adds the dir to TCLLIBPATH so you don't have
  to edit your .profile because of this...
- Fixes for the FreeBSD sound system, midi playback while recording
  works now.

PR:		14234
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de>
1999-10-10 22:24:25 +00:00

16 lines
394 B
Plaintext

Index: mapper/src/Mapper_OSS.c
@@ -964,6 +964,13 @@
BEGIN("Mapper_ReadEvent");
+#ifdef __FreeBSD__
+ /* on FreeBSD the read() will block when there is no data available... */
+ out = 0;
+ ioctl(seqfd, SNDCTL_SEQ_GETINCOUNT, &out);
+ if (!out)
+ RETURN_BOOL(False);
+#endif
if ( ( out = read(seqfd, &InBytes, sizeof(InBytes)) ) <= 0 )
RETURN_BOOL(False);