summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2011-07-10 23:12:56 -0400
committerNiels Horn <niels.horn@slackbuilds.org>2011-07-14 21:54:03 -0300
commit45f9592966742a36826d77f5473714b84ee58269 (patch)
tree8ffc274463fea536cbd353b2b01da4fda2fb2d27
parentc63767669409d0171e65740187b63b1656924b41 (diff)
downloadslackbuilds-45f9592966742a36826d77f5473714b84ee58269.tar.gz
audio/jack_delay: Added (measure the latency of your sound card)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
-rw-r--r--audio/jack_delay/README11
-rw-r--r--audio/jack_delay/jack_delay.SlackBuild67
-rw-r--r--audio/jack_delay/jack_delay.info10
-rw-r--r--audio/jack_delay/slack-desc19
4 files changed, 107 insertions, 0 deletions
diff --git a/audio/jack_delay/README b/audio/jack_delay/README
new file mode 100644
index 0000000000..06257dc8e6
--- /dev/null
+++ b/audio/jack_delay/README
@@ -0,0 +1,11 @@
+jack_delay is a small command line JACK app you can use to measure the
+latency of your sound card. It uses a phase measurements on a set of
+tones to measure the delay from the output to the input. Accuracy is
+about 1/1000 of a sample.
+
+This requires jack-audio-connection-kit, version 0.120 or greater (the
+one on SlackBuilds.org is fine, but if you got your JACK from a different
+source, make sure it's new enough, or replace it with the SBo version).
+
+Definitely read the docs in /usr/doc/jack_delay-$VERSION/README to
+understand how to use this.
diff --git a/audio/jack_delay/jack_delay.SlackBuild b/audio/jack_delay/jack_delay.SlackBuild
new file mode 100644
index 0000000000..6eea515426
--- /dev/null
+++ b/audio/jack_delay/jack_delay.SlackBuild
@@ -0,0 +1,67 @@
+#!/bin/sh
+
+# Slackware build script for jack_delay
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+PRGNAM=jack_delay
+VERSION=${VERSION:-0.4.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG/usr/bin $OUTPUT
+cd $TMP
+rm -rf $PRGNAM
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+sed -i "s,-O2,$SLKCFLAGS," Makefile
+make
+make install PREFIX=$PKG/usr
+strip $PKG/usr/bin/*
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/audio/jack_delay/jack_delay.info b/audio/jack_delay/jack_delay.info
new file mode 100644
index 0000000000..acaf13493d
--- /dev/null
+++ b/audio/jack_delay/jack_delay.info
@@ -0,0 +1,10 @@
+PRGNAM="jack_delay"
+VERSION="0.4.0"
+HOMEPAGE="http://kokkinizita.linuxaudio.org/linuxaudio/"
+DOWNLOAD="http://kokkinizita.linuxaudio.org/linuxaudio/downloads/jack_delay-0.4.0.tar.bz2"
+DOWNLOAD_x86_64=""
+MD5SUM="8f61ecf5bc0744bf943c6ad993177a31"
+MD5SUM_x86_64=""
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"
+APPROVED="dsomero"
diff --git a/audio/jack_delay/slack-desc b/audio/jack_delay/slack-desc
new file mode 100644
index 0000000000..1e2a8ee6db
--- /dev/null
+++ b/audio/jack_delay/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+jack_delay: jack_delay (measure the latency of your sound card)
+jack_delay:
+jack_delay: jack_delay is a small command line JACK app you can use to measure
+jack_delay: the latency of your sound card. It uses a phase measurements on a set
+jack_delay: of tones to measure the delay from the output to the input. Accuracy
+jack_delay: is about 1/1000 of a sample.
+jack_delay:
+jack_delay:
+jack_delay:
+jack_delay:
+jack_delay: