Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2001 13:49:14 +0100 (CET)
From:      Edwin Mons <ports@edwinm.ik.nu>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        ports@edwinm.ik.nu
Subject:   ports/31897: New port: plugin for xmms to alter pitch or length
Message-ID:  <20011110124914.4F53340E8@mag.ik.nu>

next in thread | raw e-mail | index | archive | help

>Number:         31897
>Category:       ports
>Synopsis:       New port: plugin for xmms to alter pitch or length
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 10 04:50:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Edwin Mons
>Release:        FreeBSD 4.4-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD mag.ik.nu 4.4-PRERELEASE FreeBSD 4.4-PRERELEASE #2: Wed Sep 5 23:07:13 CEST 2001 edwinm@mag.ik.nu:/extra0/src/4-STABLE/sys/compile/MAG-II i386


	
>Description:
	New port: audio/xmms-sndstretch.  This plugin for XMMS enables you to
	adjust pitch and speed.

>How-To-Repeat:
	
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	audio/xmms-sndstretch
#	audio/xmms-sndstretch/pkg-plist
#	audio/xmms-sndstretch/pkg-descr
#	audio/xmms-sndstretch/pkg-comment
#	audio/xmms-sndstretch/distinfo
#	audio/xmms-sndstretch/Makefile
#	audio/xmms-sndstretch/files
#	audio/xmms-sndstretch/files/patch-aa
#	audio/xmms-sndstretch/files/patch-ab
#	audio/xmms-sndstretch/files/patch-ac
#
echo c - audio/xmms-sndstretch
mkdir -p audio/xmms-sndstretch > /dev/null 2>&1
echo x - audio/xmms-sndstretch/pkg-plist
sed 's/^X//' >audio/xmms-sndstretch/pkg-plist << 'END-of-audio/xmms-sndstretch/pkg-plist'
Xlib/xmms/Effect/sndstretch_xmms_out.so
Xlib/xmms/Output/sndstretch_xmms_eff.so
END-of-audio/xmms-sndstretch/pkg-plist
echo x - audio/xmms-sndstretch/pkg-descr
sed 's/^X//' >audio/xmms-sndstretch/pkg-descr << 'END-of-audio/xmms-sndstretch/pkg-descr'
Xsndstretch_xmms is an xmms plugin to adjust pitch and speed seperately 
Xwith two sliders.
X
Xsndstretch can be compiled as an effect-plugin, with one major drawback 
X    - the time and the visual plugins don't synchronize with the song 
X
Xand a very basic oss-output-plugin with some limitations: 
X    - no additional effect support built in (at least not yet). 
X    - the mixer device and pcm device are fix coded as "/dev/mixer" 
X      and "/dev/dsp" 
X    - the effect is written for normal signed short (S16_LE) and will 
X      probably only work if xmms plays such data (...i think mostly it will). 
END-of-audio/xmms-sndstretch/pkg-descr
echo x - audio/xmms-sndstretch/pkg-comment
sed 's/^X//' >audio/xmms-sndstretch/pkg-comment << 'END-of-audio/xmms-sndstretch/pkg-comment'
XPlugin for xmms to change the pitch and/or speed
END-of-audio/xmms-sndstretch/pkg-comment
echo x - audio/xmms-sndstretch/distinfo
sed 's/^X//' >audio/xmms-sndstretch/distinfo << 'END-of-audio/xmms-sndstretch/distinfo'
XMD5 (sndstretch_xmms-0.5.tar.gz) = adc805ead49861c6e55490f0b18e78ce
END-of-audio/xmms-sndstretch/distinfo
echo x - audio/xmms-sndstretch/Makefile
sed 's/^X//' >audio/xmms-sndstretch/Makefile << 'END-of-audio/xmms-sndstretch/Makefile'
X# New ports collection makefile for:	xmms-sndstretch
X# Date created:				10 November 2001
X# Whom:					Edwin Mons <ports@edwinm.ik.nu>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	sndstretch
XPORTVERSION=	0.5
XCATEGORIES=	audio
XMASTER_SITES=	http://www.geocities.com/harpin_floh/mysoft/
XPKGNAMEPREFIX=	xmms-
XDISTNAME=	sndstretch_xmms-${PORTVERSION}
X
XMAINTAINER=	ports@edwinm.ik.nu
X
XLIB_DEPENDS=	xmms.2:${PORTSDIR}/audio/xmms
X
XWRKSRC=		${WRKDIR}/sndstretch_xmms
X
XUSE_X_PREFIX=	yes
XUSE_X11=	yes
XUSE_GMAKE=	yes
X
Xpost-extract:
X	(cd ${WRKSRC}; make clean)
X
X.include <bsd.port.mk>
END-of-audio/xmms-sndstretch/Makefile
echo c - audio/xmms-sndstretch/files
mkdir -p audio/xmms-sndstretch/files > /dev/null 2>&1
echo x - audio/xmms-sndstretch/files/patch-aa
sed 's/^X//' >audio/xmms-sndstretch/files/patch-aa << 'END-of-audio/xmms-sndstretch/files/patch-aa'
X--- Makefile.orig	Fri Mar 16 00:15:55 2001
X+++ Makefile	Sat Nov 10 13:36:17 2001
X@@ -1,24 +1,26 @@
X CC      = gcc
X #INCDIR  = -I sndstretch
X-CFLAGS  = -Wall -O6 $(INCDIR)
X+CFLAGS  += -Wall $(INCDIR)
X+GTK_CONFIG=gtk12-config
X+THREADS=-pthread
X 
X # maybe you will have to change this
X-XMMS_EPLUGIN_DIR = /usr/X11/lib/xmms/Output
X-XMMS_OPLUGIN_DIR = /usr/X11/lib/xmms/Effect
X+XMMS_EPLUGIN_DIR = ${PREFIX}/lib/xmms/Output
X+XMMS_OPLUGIN_DIR = ${PREFIX}/lib/xmms/Effect
X 
X all: effect_plugin output_plugin
X 
X effect_plugin: sndstretch_xmms_eff.lo sndstretch.lo
X-	$(CC) -shared sndstretch_xmms_eff.lo sndstretch.lo `gtk-config --libs` -lgthread -lpthread -lpthread -lc -o sndstretch_xmms_eff.so
X+	$(CC) -shared sndstretch_xmms_eff.lo sndstretch.lo `${GTK_CONFIG} --libs` ${THREADS} -lc -o sndstretch_xmms_eff.so
X 
X output_plugin: sndstretch_xmms_out.lo sndstretch.lo
X-	$(CC) -shared sndstretch_xmms_out.lo sndstretch.lo `gtk-config --libs` -lgthread -lpthread -lpthread -lc -o sndstretch_xmms_out.so
X+	$(CC) -shared sndstretch_xmms_out.lo sndstretch.lo `${GTK_CONFIG} --libs` ${THREADS} -lc -o sndstretch_xmms_out.so
X 
X sndstretch_xmms_eff.lo: sndstretch_xmms.h sndstretch_xmms_eff.c sndstretch_xmms.c FB_logo.xpm sndstretch_xmms-logo.xpm
X-	$(CC) $(CFLAGS) -O2 -fPIC -c sndstretch_xmms_eff.c `gtk-config --cflags` -o sndstretch_xmms_eff.lo
X+	$(CC) $(CFLAGS) -O2 -fPIC -c sndstretch_xmms_eff.c `${GTK_CONFIG} --cflags` -o sndstretch_xmms_eff.lo
X         
X sndstretch_xmms_out.lo: sndstretch_xmms.h sndstretch_xmms_out.c sndstretch_xmms.c FB_logo.xpm sndstretch_xmms-logo.xpm
X-	$(CC) $(CFLAGS) -O2 -fPIC -c sndstretch_xmms_out.c `gtk-config --cflags` -o sndstretch_xmms_out.lo
X+	$(CC) $(CFLAGS) -O2 -fPIC -c sndstretch_xmms_out.c `${GTK_CONFIG} --cflags` -o sndstretch_xmms_out.lo
X         
X sndstretch.lo: sndstretch.c sndstretch.h
X 	$(CC) $(CFLAGS) -O2 -fPIC -c sndstretch.c -o sndstretch.lo
END-of-audio/xmms-sndstretch/files/patch-aa
echo x - audio/xmms-sndstretch/files/patch-ab
sed 's/^X//' >audio/xmms-sndstretch/files/patch-ab << 'END-of-audio/xmms-sndstretch/files/patch-ab'
X--- sndstretch.c.orig	Thu Sep 27 17:10:34 2001
X+++ sndstretch.c	Sat Nov 10 12:54:19 2001
X@@ -1053,9 +1053,11 @@
X         
X         speed_act = speed;
X         pitch_act = pitch;
X+#ifdef DEBUG
X         if ( fade_shift != fade_shift_act ){
X             fprintf(stderr,"changed fade_shift_act\n");
X         }
X+#endif
X         fade_shift_act = fade_shift;
X 
X //        if (ring_buff!=0) free(ring_buff);
X
END-of-audio/xmms-sndstretch/files/patch-ab
echo x - audio/xmms-sndstretch/files/patch-ac
sed 's/^X//' >audio/xmms-sndstretch/files/patch-ac << 'END-of-audio/xmms-sndstretch/files/patch-ac'
X--- sndstretch_xmms.c.orig	Thu Sep 27 17:32:50 2001
X+++ sndstretch_xmms.c	Sat Nov 10 12:54:24 2001
X@@ -27,7 +27,11 @@
X #include "sndstretch.h"
X #include <fcntl.h>
X #include <sys/ioctl.h>
X+#ifdef __FreeBSD__
X+#include <sys/soundcard.h>
X+#else
X #include <linux/soundcard.h>
X+#endif
X #include <unistd.h>
X #include <math.h>
X #include <stdlib.h>
END-of-audio/xmms-sndstretch/files/patch-ac
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011110124914.4F53340E8>