summaryrefslogtreecommitdiff
path: root/audio/xmmix/patches/patch-aa
diff options
context:
space:
mode:
authorfredb <fredb>2000-09-19 11:09:21 +0000
committerfredb <fredb>2000-09-19 11:09:21 +0000
commit5bceb98943ad5d4fe28b4bd5d0043c800f11326d (patch)
tree168b4433edb9759098441320de7246eeac942e15 /audio/xmmix/patches/patch-aa
parent6cad0c705f4936be73eeced151f2d42aef5daf04 (diff)
downloadpkgsrc-5bceb98943ad5d4fe28b4bd5d0043c800f11326d.tar.gz
Sliders go from 0 to 255 on NetBSD, not 0 to 100. Correct spelling --
non-existent widget type was making the "-debug" output unreadable.
Diffstat (limited to 'audio/xmmix/patches/patch-aa')
-rw-r--r--audio/xmmix/patches/patch-aa117
1 files changed, 1 insertions, 116 deletions
diff --git a/audio/xmmix/patches/patch-aa b/audio/xmmix/patches/patch-aa
index 0e320967efa..7bf78d21605 100644
--- a/audio/xmmix/patches/patch-aa
+++ b/audio/xmmix/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.4 1998/08/07 10:36:22 agc Exp $
+$NetBSD: patch-aa,v 1.5 2000/09/19 11:09:21 fredb Exp $
--- ../xmmix-1.2/Imakefile Sun Jul 14 19:48:56 1996
+++ ./Imakefile Fri Oct 24 23:34:17 1997
@@ -38,83 +38,6 @@ $NetBSD: patch-aa,v 1.4 1998/08/07 10:36:22 agc Exp $
/* Initialize screen controls */
mx_start(&widgets);
---- ../xmmix-1.2/mixer.c Thu Nov 7 17:00:26 1996
-+++ ./mixer.c Mon Aug 11 23:20:15 1997
-@@ -104,6 +104,14 @@
- ***********************/
-
-
-+#ifdef __NetBSD__
-+void
-+mxchg(int sig)
-+{
-+ deliverSIGIO();
-+}
-+#endif
-+
- /*
- * do_ioctl
- * Perform ioctl command. If file is not yet open or if we
-@@ -681,11 +689,13 @@
- /* Query sound driver version */
- if ((fp = fopen("/dev/sndstat", "r")) == NULL) {
- if (!app_data.demo) {
-+#ifndef __NetBSD__
- fprintf(errfp, "%s: %s: %s\n",
- PROGNAME,
- "Cannot open /dev/sndstat",
- "assuming pre-3.0 sound driver.");
- maxdevs = MAXDEVS_V2;
-+#endif
- }
- return;
- }
-@@ -915,6 +925,7 @@
- mx_start(widgets_t *m)
- {
- char msg[256];
-+ int one = 1;
-
- if (app_data.autoload != NULL && app_data.autoload[0] != '\0' &&
- strcmp(app_data.autoload, "/dev/null") != 0) {
-@@ -930,6 +941,14 @@
- }
- }
-
-+#if defined(__NetBSD__)
-+ signal(SIGIO, mxchg);
-+ ioctl(dev_fd, FIOASYNC, &one);
-+#endif
-+
-+ /* Query hardware mixer settings */
-+ mx_queryhw(&widgets);
-+
- /* Update screen controls to match current status */
- mx_updctl(m);
- }
-@@ -1531,6 +1550,22 @@
- if (p->reason != XmCR_FOCUS || form == (Widget) NULL)
- return;
-
-+ /* Query hardware mixer settings */
-+ mx_queryhw(&widgets);
-+
-+ /* Update screen controls */
-+ mx_updctl(&widgets);
-+}
-+
-+
-+/*
-+ * mx_change
-+ * Mixer device has changed
-+ */
-+/*ARGSUSED*/
-+void
-+mx_change(XtPointer client_data)
-+{
- /* Query hardware mixer settings */
- mx_queryhw(&widgets);
-
--- ../xmmix-1.2/mixer.h Sun Jul 14 19:49:04 1996
+++ ./mixer.h Mon Aug 11 23:19:17 1997
@@ -78,6 +78,7 @@
@@ -125,44 +48,6 @@ $NetBSD: patch-aa,v 1.4 1998/08/07 10:36:22 agc Exp $
#endif /* __MIXER_H__ */
---- ../xmmix-1.2/widget.c Sun Jul 14 19:49:09 1996
-+++ ./widget.c Sat Oct 25 00:24:43 1997
-@@ -973,6 +973,10 @@
- delw = XmInternAtom(display, "WM_DELETE_WINDOW", False);
- }
-
-+static XtSignalId sigid;
-+void deliverSIGIO() {
-+ XtNoticeSignal(sigid);
-+}
-
- /*
- * register_callbacks
-@@ -985,7 +989,7 @@
- * Nothing
- */
- void
--register_callbacks(widgets_t *m)
-+register_callbacks(widgets_t *m, XtAppContext app)
- {
- int i;
-
-@@ -1126,6 +1130,15 @@
- XmNfocusCallback,
- (XtCallbackProc) mx_focuschg, (XtPointer) m->form
- );
-+
-+#ifdef __NetBSD__
-+ /*
-+ * Mixer SIGIO change callback
-+ */
-+ sigid = XtAppAddSignal(app,
-+ (XtSignalCallbackProc) mx_change, (XtPointer) 0
-+ );
-+#endif
-
- /*
- * Install WM_DELETE_WINDOW handler
--- ../xmmix-1.2/widget.h Sun Jul 14 19:49:10 1996
+++ ./widget.h Mon Aug 11 23:13:43 1997
@@ -119,7 +119,7 @@