summaryrefslogtreecommitdiff
path: root/audio/xanalyser
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2002-04-23 03:33:26 +0000
committerschmonz <schmonz@pkgsrc.org>2002-04-23 03:33:26 +0000
commit883c1cbfb0b011be32bbdd992cb0d881c096bcd6 (patch)
tree316679bee52f6fe527724366098fe0e2828b78d6 /audio/xanalyser
parent408c5305410c46a741ae66a409b9cb3ef08e0316 (diff)
downloadpkgsrc-883c1cbfb0b011be32bbdd992cb0d881c096bcd6.tar.gz
Import xanalyser-1.21. Patches and approval by garbled.
The frequency analyser showes the frequency spectrum of the source, either separately for both channels or together. Roughly speaking the XY scope draws a plots where the left channel is used for the x axis and the right channel for the y axis. Thus a audio signal only present on the left channel produces a horizontal line, whereas a audio signal only present on the right channel produces a vertical line. Can be used as a PC-Based RTA.
Diffstat (limited to 'audio/xanalyser')
-rw-r--r--audio/xanalyser/DESCR7
-rw-r--r--audio/xanalyser/Makefile19
-rw-r--r--audio/xanalyser/PLIST3
-rw-r--r--audio/xanalyser/distinfo12
-rw-r--r--audio/xanalyser/patches/patch-aa22
-rw-r--r--audio/xanalyser/patches/patch-ab29
-rw-r--r--audio/xanalyser/patches/patch-ac13
-rw-r--r--audio/xanalyser/patches/patch-ad24
-rw-r--r--audio/xanalyser/patches/patch-ae15
-rw-r--r--audio/xanalyser/patches/patch-af13
-rw-r--r--audio/xanalyser/patches/patch-ag33
-rw-r--r--audio/xanalyser/patches/patch-ah12
-rw-r--r--audio/xanalyser/patches/patch-ai13
13 files changed, 215 insertions, 0 deletions
diff --git a/audio/xanalyser/DESCR b/audio/xanalyser/DESCR
new file mode 100644
index 00000000000..e49ccff237b
--- /dev/null
+++ b/audio/xanalyser/DESCR
@@ -0,0 +1,7 @@
+The frequency analyser showes the frequency spectrum of the source,
+either separately for both channels or together. Roughly speaking
+the XY scope draws a plots where the left channel is used for the
+x axis and the right channel for the y axis. Thus a audio signal
+only present on the left channel produces a horizontal line, whereas
+a audio signal only present on the right channel produces a vertical
+line. Can be used as a PC-Based RTA.
diff --git a/audio/xanalyser/Makefile b/audio/xanalyser/Makefile
new file mode 100644
index 00000000000..40c37cb84c8
--- /dev/null
+++ b/audio/xanalyser/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/04/23 03:33:26 schmonz Exp $
+#
+
+DISTNAME= xanalyser-1.21
+CATEGORIES= audio
+MASTER_SITES= ftp://ftp.suse.com/pub/people/arvin/private/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= root@garbled.net
+HOMEPAGE= http://www.suse.de/~arvin/xanalyser/
+COMMENT= Frequency spectrum analyser for X
+
+USE_BUILDLINK_ONLY= # defined
+GNU_CONFIGURE= # defined
+
+.include "../../graphics/xpm/buildlink.mk"
+.include "../../mk/motif.buildlink.mk"
+.include "../../mk/x11.buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/xanalyser/PLIST b/audio/xanalyser/PLIST
new file mode 100644
index 00000000000..4ea41c402af
--- /dev/null
+++ b/audio/xanalyser/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/04/23 03:33:26 schmonz Exp $
+bin/xanalyser
+man/man1/xanalyser.1
diff --git a/audio/xanalyser/distinfo b/audio/xanalyser/distinfo
new file mode 100644
index 00000000000..6da44a91e9f
--- /dev/null
+++ b/audio/xanalyser/distinfo
@@ -0,0 +1,12 @@
+
+SHA1 (xanalyser-1.21.tar.bz2) = abdc1ddaffcb7dd4074672a54798b4b1ec4b0061
+Size (xanalyser-1.21.tar.bz2) = 58542 bytes
+SHA1 (patch-aa) = 29651c643550679f647b54726fb8d25579cdaaf7
+SHA1 (patch-ab) = bee615a58bd041c2b31645d3d312798c1dd5606d
+SHA1 (patch-ac) = 78f5f22951a918291c7ab5c61110c4ec2e9cf8b8
+SHA1 (patch-ad) = c37bac9f9630ad63618cbad58af89f051c1fe5d8
+SHA1 (patch-ae) = db464b9a91db329473e7d774b7fb53d977b258af
+SHA1 (patch-af) = bf6af0c140a802fb98e82e82ecbfb7240696db09
+SHA1 (patch-ag) = 0ae5680df966e534d76d04cddf6a78259d87cbfe
+SHA1 (patch-ah) = a8bae5da6db1098ce1520cc49e167fc5999b0dda
+SHA1 (patch-ai) = 6805fc79e0c3135f6f22eb0b91c68cacd96c483c
diff --git a/audio/xanalyser/patches/patch-aa b/audio/xanalyser/patches/patch-aa
new file mode 100644
index 00000000000..070a80307c0
--- /dev/null
+++ b/audio/xanalyser/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/04/23 03:33:26 schmonz Exp $
+
+--- src/Analyser.cc.orig Wed Dec 12 16:41:57 2001
++++ src/Analyser.cc
+@@ -8,7 +8,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <math.h>
+-#include <values.h>
++#include <limits.h>
+ #include <assert.h>
+
+ #include <X11/Xlib.h>
+@@ -559,7 +559,7 @@
+ void
+ Analyser::snd2u (const int32_t* buffer, int channel)
+ {
+- const double norm = (channel == MONO ? 0.5 : 1.0) / (double) MAXINT;
++ const double norm = (channel == MONO ? 0.5 : 1.0) / (double) INT_MAX;
+
+ switch (channel) {
+
diff --git a/audio/xanalyser/patches/patch-ab b/audio/xanalyser/patches/patch-ab
new file mode 100644
index 00000000000..c8da53d81ec
--- /dev/null
+++ b/audio/xanalyser/patches/patch-ab
@@ -0,0 +1,29 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/04/23 03:33:26 schmonz Exp $
+
+--- src/DSP.cc.orig Sat Dec 1 20:05:15 2001
++++ src/DSP.cc
+@@ -10,12 +10,12 @@
+ #include <stdlib.h>
+ #include <fcntl.h>
+ #include <sys/ioctl.h>
+-#include <sys/soundcard.h>
++#include <soundcard.h>
+ #include <math.h>
+ #include <errno.h>
+ #include <string.h>
+-#include <values.h>
+-#include <byteswap.h>
++#include <limits.h>
++#include <machine/byte_swap.h>
+
+ #include "DSP.h"
+
+@@ -168,7 +168,7 @@
+ int n = count / 2;
+
+ for (int i = n; i != 0; i--) {
+- *tmp_buffer = bswap_16 (*tmp_buffer);
++ *tmp_buffer = bswap16 (*tmp_buffer);
+ tmp_buffer++;
+ }
+ }
diff --git a/audio/xanalyser/patches/patch-ac b/audio/xanalyser/patches/patch-ac
new file mode 100644
index 00000000000..3cf935c96b0
--- /dev/null
+++ b/audio/xanalyser/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2002/04/23 03:33:26 schmonz Exp $
+
+--- src/DSP.h.orig Sat Dec 1 20:04:44 2001
++++ src/DSP.h
+@@ -9,7 +9,7 @@
+ #define DSP_h
+
+
+-#include <sys/soundcard.h>
++#include <soundcard.h>
+
+
+ /*
diff --git a/audio/xanalyser/patches/patch-ad b/audio/xanalyser/patches/patch-ad
new file mode 100644
index 00000000000..dd9895b094a
--- /dev/null
+++ b/audio/xanalyser/patches/patch-ad
@@ -0,0 +1,24 @@
+$NetBSD: patch-ad,v 1.1.1.1 2002/04/23 03:33:27 schmonz Exp $
+
+--- src/Makefile.in.orig Wed Jan 23 14:49:25 2002
++++ src/Makefile.in
+@@ -73,7 +73,7 @@
+ xanalyser_SOURCES = Analyser.cc Analyser.h DSP.cc DSP.h Sample.cc Sample.h Scope.cc Scope.h XAnalyser.ad.h control.cc control.h fft.cc fft.h help.cc help.h help.txt.h main.cc main.h utils.cc utils.h Trans.h
+
+
+-xanalyser_LDADD = -lXext -lXm -lXt -lSM -lICE -lXmu -lXpm -lX11 # -ldfftw -ldrfftw
++xanalyser_LDADD = -lXext -lXm -lXt -lSM -lICE -lXmu -lXpm -lX11 -lossaudio# -ldfftw -ldrfftw
+
+ EXTRA_DIST = XAnalyser.ad help.txt *.xpm
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+@@ -302,8 +302,8 @@
+
+ main.cc: XAnalyser.ad.h
+
+-XAnalyser.ad.h: XAnalyser.ad
+- ad2c XAnalyser.ad > XAnalyser.ad.h
++#XAnalyser.ad.h: XAnalyser.ad
++# ad2c XAnalyser.ad > XAnalyser.ad.h
+
+ help.cc: help.txt.h
+
diff --git a/audio/xanalyser/patches/patch-ae b/audio/xanalyser/patches/patch-ae
new file mode 100644
index 00000000000..1341970ce66
--- /dev/null
+++ b/audio/xanalyser/patches/patch-ae
@@ -0,0 +1,15 @@
+$NetBSD: patch-ae,v 1.1.1.1 2002/04/23 03:33:27 schmonz Exp $
+
+--- src/Sample.cc.orig Wed Dec 12 16:36:27 2001
++++ src/Sample.cc
+@@ -10,8 +10,8 @@
+ #include <math.h>
+ #include <string.h>
+ #include <errno.h>
+-#include <values.h>
+-#include <endian.h>
++#include <limits.h>
++#include <machine/endian.h>
+
+ #include <X11/Xlib.h>
+ #include <Xm/Xm.h>
diff --git a/audio/xanalyser/patches/patch-af b/audio/xanalyser/patches/patch-af
new file mode 100644
index 00000000000..f15ecc58689
--- /dev/null
+++ b/audio/xanalyser/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1.1.1 2002/04/23 03:33:27 schmonz Exp $
+
+--- src/Sample.h.orig Wed Dec 12 16:36:27 2001
++++ src/Sample.h
+@@ -10,7 +10,7 @@
+
+
+ #include <stdio.h>
+-#include <stdint.h>
++//#include <stdint.h>
+
+ #include "DSP.h"
+
diff --git a/audio/xanalyser/patches/patch-ag b/audio/xanalyser/patches/patch-ag
new file mode 100644
index 00000000000..e7ffafdad9f
--- /dev/null
+++ b/audio/xanalyser/patches/patch-ag
@@ -0,0 +1,33 @@
+$NetBSD: patch-ag,v 1.1.1.1 2002/04/23 03:33:27 schmonz Exp $
+
+--- src/Scope.cc.orig Wed Dec 12 16:39:48 2001
++++ src/Scope.cc
+@@ -8,7 +8,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <math.h>
+-#include <values.h>
++#include <limits.h>
+
+ #include <X11/Xlib.h>
+ #ifdef DBE
+@@ -250,15 +250,15 @@
+ if (sample.frame_count % num_count == 0)
+ clear (0);
+
+- const double dx = xanalyser.dcadjust ? sample.dc[0] / MAXINT : 0;
+- const double dy = xanalyser.dcadjust ? sample.dc[1] / MAXINT : 0;
++ const double dx = xanalyser.dcadjust ? sample.dc[0] / INT_MAX : 0;
++ const double dy = xanalyser.dcadjust ? sample.dc[1] / INT_MAX : 0;
+
+ const double sf = M_LOG2E * exp (0.05 * zoom * log (10.0));
+
+ for (unsigned int i = 0; i < sample.length; i++) {
+
+- double x = (double)(buffer[2 * i + 0]) / (double)(MAXINT) - dx;
+- double y = (double)(buffer[2 * i + 1]) / (double)(MAXINT) - dy;
++ double x = (double)(buffer[2 * i + 0]) / (double)(INT_MAX) - dx;
++ double y = (double)(buffer[2 * i + 1]) / (double)(INT_MAX) - dy;
+
+ double h = hypot (x, y);
+ double rdh = h == 0.0 ? 0.0 : sf * log (h + 1.0) / h;
diff --git a/audio/xanalyser/patches/patch-ah b/audio/xanalyser/patches/patch-ah
new file mode 100644
index 00000000000..87775136e65
--- /dev/null
+++ b/audio/xanalyser/patches/patch-ah
@@ -0,0 +1,12 @@
+$NetBSD: patch-ah,v 1.1.1.1 2002/04/23 03:33:27 schmonz Exp $
+
+--- src/XAnalyser.ad.h.orig Sat Dec 1 20:07:38 2001
++++ src/XAnalyser.ad.h
+@@ -1,6 +1,6 @@
+ "XAnalyser.SampleSpeed: 44100",
+ "XAnalyser.SampleLength: 2048",
+-"XAnalyser.SampleDevice: /dev/dsp",
++"XAnalyser.SampleDevice: /dev/audio",
+ "XAnalyser.DCAdjust: True",
+ "XAnalyser.Source: Soundcard",
+ "XAnalyser.Filename: test.cdr",
diff --git a/audio/xanalyser/patches/patch-ai b/audio/xanalyser/patches/patch-ai
new file mode 100644
index 00000000000..49cb86d574b
--- /dev/null
+++ b/audio/xanalyser/patches/patch-ai
@@ -0,0 +1,13 @@
+$NetBSD: patch-ai,v 1.1.1.1 2002/04/23 03:33:27 schmonz Exp $
+
+--- src/XAnalyser.ad.orig Sat Dec 1 20:07:37 2001
++++ src/XAnalyser.ad
+@@ -1,7 +1,7 @@
+
+ XAnalyser.SampleSpeed: 44100
+ XAnalyser.SampleLength: 2048
+-XAnalyser.SampleDevice: /dev/dsp
++XAnalyser.SampleDevice: /dev/audio
+
+ XAnalyser.DCAdjust: True
+