diff options
author | wiz <wiz> | 2009-04-10 18:45:15 +0000 |
---|---|---|
committer | wiz <wiz> | 2009-04-10 18:45:15 +0000 |
commit | a17af7a4708b568c81cabe8ba5f60607fc5e6ed2 (patch) | |
tree | d99c00ce164f7c5b352651eb1f480dfb06e8c145 /audio/timidity/patches | |
parent | a69819f00c4c22e4869a56d7c3a4219282028ba4 (diff) | |
download | pkgsrc-a17af7a4708b568c81cabe8ba5f60607fc5e6ed2.tar.gz |
Fix acnlt() return value handling for NetBSD sound device.
From John E. Krokes in PR 41171.
Bump PKGREVISION.
Diffstat (limited to 'audio/timidity/patches')
-rw-r--r-- | audio/timidity/patches/patch-aa | 16 | ||||
-rw-r--r-- | audio/timidity/patches/patch-ab | 12 |
2 files changed, 15 insertions, 13 deletions
diff --git a/audio/timidity/patches/patch-aa b/audio/timidity/patches/patch-aa index 93c170e5491..cb74ef281f6 100644 --- a/audio/timidity/patches/patch-aa +++ b/audio/timidity/patches/patch-aa @@ -1,8 +1,8 @@ -$NetBSD: patch-aa,v 1.7 2007/06/08 17:18:53 wiz Exp $ +$NetBSD: patch-aa,v 1.8 2009/04/10 18:45:16 wiz Exp $ ---- timidity/sun_a.c.orig 2007-06-08 17:14:22.000000000 +0000 +--- timidity/sun_a.c.orig 2004-09-26 23:40:14.000000000 +0000 +++ timidity/sun_a.c -@@ -300,6 +300,18 @@ int output_data(char *buff, int32 nbytes +@@ -296,6 +296,18 @@ int output_data(char *buff, int32 nbytes #if !defined(I_FLUSH) || !defined(FLUSHW) @@ -21,7 +21,7 @@ $NetBSD: patch-aa,v 1.7 2007/06/08 17:18:53 wiz Exp $ static void null_proc(){} static int sun_discard_playing(void) { -@@ -312,6 +324,7 @@ static int sun_discard_playing(void) +@@ -308,6 +320,7 @@ static int sun_discard_playing(void) signal(SIGALRM, orig_alarm_handler); return open_output(); } @@ -29,7 +29,7 @@ $NetBSD: patch-aa,v 1.7 2007/06/08 17:18:53 wiz Exp $ #else static int sun_discard_playing(void) { -@@ -332,6 +345,21 @@ static int acntl(int request, void *arg) +@@ -328,6 +341,23 @@ static int acntl(int request, void *arg) switch(request) { @@ -37,12 +37,14 @@ $NetBSD: patch-aa,v 1.7 2007/06/08 17:18:53 wiz Exp $ + case PM_REQ_GETQSIZ: + if(ioctl(audioctl_fd, AUDIO_GETINFO, &auinfo) < 0) + return -1; -+ return auinfo.play.buffer_size; ++ *((int *)arg) = auinfo.play.buffer_size; ++ return 0; + + case PM_REQ_GETFRAGSIZ: + if(ioctl(audioctl_fd, AUDIO_GETINFO, &auinfo) < 0) + return -1; -+ return auinfo.blocksize; ++ *((int *)arg) = auinfo.blocksize; ++ return 0; + + case PM_REQ_OUTPUT_FINISH: + return ioctl(audioctl_fd, AUDIO_DRAIN, NULL); diff --git a/audio/timidity/patches/patch-ab b/audio/timidity/patches/patch-ab index 9db395e5d12..4f1f22c8981 100644 --- a/audio/timidity/patches/patch-ab +++ b/audio/timidity/patches/patch-ab @@ -1,8 +1,8 @@ -$NetBSD: patch-ab,v 1.13 2005/11/19 21:21:23 kristerw Exp $ +$NetBSD: patch-ab,v 1.14 2009/04/10 18:45:16 wiz Exp $ ---- interface/xaw_i.c.orig 2005-11-19 21:56:48.000000000 +0100 -+++ interface/xaw_i.c 2005-11-19 21:58:44.000000000 +0100 -@@ -261,7 +261,7 @@ +--- interface/xaw_i.c.orig 2004-09-26 23:40:14.000000000 +0000 ++++ interface/xaw_i.c +@@ -261,7 +261,7 @@ int amplitude = DEFAULT_AMPLIFICATION; String bitmapdir = XAW_BITMAP_DIR; Boolean arrangetitle,savelist; static char **current_flist = NULL; @@ -11,7 +11,7 @@ $NetBSD: patch-ab,v 1.13 2005/11/19 21:21:23 kristerw Exp $ static int maxentry_on_a_menu = 0,submenu_n = 0; #define OPTIONS_WINDOW 1 #define FLIST_WINDOW 2 -@@ -1329,7 +1329,7 @@ +@@ -1329,7 +1329,7 @@ static void handle_input(XtPointer data, c= *(local_buf+1); n= atoi(local_buf+2); if(c == 'L') @@ -20,7 +20,7 @@ $NetBSD: patch-ab,v 1.13 2005/11/19 21:21:23 kristerw Exp $ else last_voice = n; if(IsTracePlaying()) drawVoices(); -@@ -2070,7 +2070,7 @@ +@@ -2070,7 +2070,7 @@ static void drawVoices(void) { XSetForeground(disp, gct, tracecolor); XFillRectangle(disp,XtWindow(trace),gct,voices_num_width +4, MAX_XAW_MIDI_CHANNELS*BAR_SPACE+TRACEV_OFS+1,VOICENUM_WIDTH,TRACE_FOOT); |