-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
270 changed files
with
1,667 additions
and
704 deletions.
There are no files selected for viewing
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff -crB cmus-2.2.0.orig/mp4.c cmus-2.2.0/mp4.c | ||
*** cmus-2.2.0.orig/mp4.c 2010-01-08 11:06:09.423202273 +0100 | ||
--- cmus-2.2.0/mp4.c 2010-01-08 11:15:28.829202191 +0100 | ||
*************** | ||
*** 22,28 **** | ||
#include "debug.h" | ||
#include "file.h" | ||
|
||
! #include <mp4.h> | ||
#include <faad.h> | ||
|
||
#include <errno.h> | ||
--- 22,28 ---- | ||
#include "debug.h" | ||
#include "file.h" | ||
|
||
! #include <mp4v2/mp4v2.h> | ||
#include <faad.h> | ||
|
||
#include <errno.h> |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
The Snack Sound Toolkit is designed to be used with a scripting language such as Tcl/Tk or Python. | ||
Using Snack you can create powerful multi-platform audio applications with just a few lines of code. | ||
Snack has commands for basic sound handling, such as playback, recording, file and socket I/O. | ||
Snack also provides primitives for sound visualization, e.g. waveforms and spectrograms. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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------------------------------------------------------| | ||
snack: snack (Snack Sound Toolkit) | ||
snack: | ||
snack: The Snack Sound Toolkit is designed to be used with a scripting language | ||
snack: language such as Tcl/Tk or Python. Using Snack you can create powerful | ||
snack: multi-platform audio applications with just a few lines of code. | ||
snack: | ||
snack: | ||
snack: | ||
snack: homepage: | ||
snack: http://www.speech.kth.se/snack/ | ||
snack: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
#!/bin/sh | ||
|
||
# Slackware build script for snack | ||
|
||
# Written by Ponce <matteo.bernardini {at} sns.it> | ||
# based on slackbuilds.org default template | ||
|
||
PRGNAM=snack | ||
VERSION=${VERSION:-2.2.10} | ||
ARCH=${ARCH:-i486} | ||
BUILD=${BUILD:-1} | ||
TAG=${TAG:-_SBo} | ||
|
||
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" | ||
fi | ||
|
||
set -e | ||
|
||
rm -rf $PKG | ||
mkdir -p $TMP $PKG $OUTPUT | ||
cd $TMP | ||
rm -rf $PRGNAM-$VERSION | ||
tar xvf $CWD/$PRGNAM$VERSION.tar.gz | ||
cd $PRGNAM$VERSION | ||
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 {} \; | ||
|
||
patch -p1 < $CWD/snack2.2.10_alsa_math.patch | ||
|
||
cd unix | ||
|
||
CFLAGS="$SLKCFLAGS" \ | ||
CXXFLAGS="$SLKCFLAGS" \ | ||
./configure \ | ||
--prefix=/usr \ | ||
--libdir=/usr/lib${LIBDIRSUFFIX} \ | ||
--sysconfdir=/etc \ | ||
--localstatedir=/var \ | ||
--mandir=/usr/man \ | ||
--enable-alsa \ | ||
--with-tcl=/usr/lib${LIBDIRSUFFIX} \ | ||
--with-tk=/usr/lib${LIBDIRSUFFIX} \ | ||
--with-ogg-include=/usr \ | ||
--with-ogg-lib=/usr \ | ||
--build=$ARCH-slackware-linux | ||
|
||
make | ||
make install DESTDIR=$PKG | ||
|
||
cd - | ||
|
||
( cd $PKG | ||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ | ||
xargs strip --strip-unneeded 2> /dev/null || true | ||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ | ||
xargs strip --strip-unneeded 2> /dev/null || true | ||
) | ||
|
||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION | ||
cp -a BSD.txt COPYING README changes $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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
PRGNAM="snack" | ||
VERSION="2.2.10" | ||
HOMEPAGE="http://www.speech.kth.se/snack/" | ||
DOWNLOAD="http://www.speech.kth.se/snack/dist/snack2.2.10.tar.gz" | ||
MD5SUM="98da0dc73599b3a039cba1b7ff169399" | ||
DOWNLOAD_x86_64="" | ||
MD5SUM_x86_64="" | ||
MAINTAINER="Ponce" | ||
EMAIL="matteo.bernardini {at} sns.it" | ||
APPROVED="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--- snack-2.2.10.orig/unix/jkAudIO_alsa.c | ||
+++ snack-2.2.10/unix/jkAudIO_alsa.c | ||
@@ -49,6 +49,8 @@ | ||
|
||
static int minNumChan = 1; | ||
|
||
+static snd_pcm_uframes_t hw_bufsize = 0; | ||
+ | ||
int | ||
SnackAudioOpen(ADesc *A, Tcl_Interp *interp, char *device, int mode, int freq, | ||
int nchannels, int encoding) | ||
@@ -135,6 +137,9 @@ | ||
Tcl_AppendResult(interp, "Failed setting HW params.", NULL); | ||
return TCL_ERROR; | ||
} | ||
+ | ||
+ snd_pcm_hw_params_get_buffer_size (hw_params, &hw_bufsize); | ||
+ | ||
snd_pcm_hw_params_free(hw_params); | ||
snd_pcm_prepare(A->handle); | ||
if (A->mode == RECORD) { | ||
@@ -202,6 +207,8 @@ | ||
int i; | ||
static char buf[64]; | ||
|
||
+ return; | ||
+ | ||
if (A->debug > 1) Snack_WriteLog(" Enter SnackAudioPost\n"); | ||
|
||
for (i = 0; i < 1000; i++) { | ||
@@ -267,12 +274,14 @@ | ||
long | ||
SnackAudioPlayed(ADesc *A) | ||
{ | ||
- long avail = _snd_pcm_mmap_hw_ptr(A->handle); | ||
+ // FIX Here, _snd_pcm_mmap_hw_ptr is deprecated in new alsalib | ||
+ long played = A->nWritten - (hw_bufsize - SnackAudioWriteable(A)); | ||
+ // long avail = _snd_pcm_mmap_hw_ptr(A->handle); | ||
|
||
- if (avail < 0) | ||
- avail = 0; | ||
+ if (played < 0) | ||
+ return 0; | ||
|
||
- return (avail+A->nPlayed); | ||
+ return (played); | ||
} | ||
|
||
void | ||
--- snack-2.2.10-dfsg1.orig/generic/jkFormatMP3.c | ||
+++ snack-2.2.10-dfsg1/generic/jkFormatMP3.c | ||
@@ -29,6 +29,7 @@ | ||
#include "snack.h" | ||
#include "jkFormatMP3.h" | ||
#include <string.h> | ||
+#include <math.h> | ||
#define FRAS2(is,a) ((is) > 0 ? t_43[(is)]*(a):-t_43[-(is)]*(a)) | ||
#define MAXFRAMESIZE 2106 /* frame size starting at header */ | ||
#define roundf(x) (floor((x)+(float )0.5f)) | ||
@@ -1309,8 +1310,6 @@ | ||
return len; | ||
} | ||
|
||
-#include <math.h> | ||
- | ||
#define PI12 0.261799387f | ||
#define PI36 0.087266462f | ||
#define COSPI3 0.500000000f |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.