summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscw <scw@pkgsrc.org>2004-09-22 11:16:35 +0000
committerscw <scw@pkgsrc.org>2004-09-22 11:16:35 +0000
commit9356c7a9054b952174b197c10cd76a5715ef7d28 (patch)
tree89d22c3d7fcfac196b09e45392447cfa1ec9bea9
parente388086535e10e9b0089d4300f444e67091360b3 (diff)
downloadpkgsrc-9356c7a9054b952174b197c10cd76a5715ef7d28.tar.gz
Update to mad123-0.8.3.
This version adds support for several different audio backends, playlists, a manual page contributed by Lubomir Sedlacik, and numerous bug fixes. Currently supported audio backends are the original Sun (OSS) backend, an optional aRts backend (still experimental, so not compiled by default), and a raw pcm backend which writes the decoded stream to a file or stdout.
-rw-r--r--audio/mad123/DESCR9
-rw-r--r--audio/mad123/Makefile7
-rw-r--r--audio/mad123/PLIST3
-rw-r--r--audio/mad123/distinfo6
-rw-r--r--audio/mad123/files/mad123.1147
5 files changed, 14 insertions, 158 deletions
diff --git a/audio/mad123/DESCR b/audio/mad123/DESCR
index cb7ea1849e9..c501e98f2e7 100644
--- a/audio/mad123/DESCR
+++ b/audio/mad123/DESCR
@@ -8,13 +8,16 @@ apart from the command line MP3 player supplied with libmad (madplay):
1) Supports URL style MP3 pathnames.
-2) The audio output is double-buffered.
+2) The audio output is double-buffered. Multiple audio backends
+ such as Sun (OSS), aRts, and pcm are supported.
3) Streams can be pre-buffered using read-ahead.
4) Simple keyboard controls.
-5) CTRL-C behaves like it does for mpg123.
+5) Playlist support.
-6) It can be installed setuid-root so it can adjust scheduling
+6) CTRL-C behaves like it does for mpg123.
+
+7) It can be installed setuid-root so it can adjust scheduling
priority to reduce its susceptiblity to jitter.
diff --git a/audio/mad123/Makefile b/audio/mad123/Makefile
index 7f1c9c99793..038b5a53db7 100644
--- a/audio/mad123/Makefile
+++ b/audio/mad123/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.7 2004/04/11 17:23:38 xtraeme Exp $
+# $NetBSD: Makefile,v 1.8 2004/09/22 11:16:35 scw Exp $
#
-DISTNAME= mad123-0.7.1
-PKGREVISION= 3
+DISTNAME= mad123-0.8.3
CATEGORIES= audio
MASTER_SITES= http://www.mctavish.co.uk/mad123/
@@ -14,7 +13,7 @@ USE_BUILDLINK3= yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mad123 ${PREFIX}/bin/mad123
- ${INSTALL_MAN} ${FILESDIR}/mad123.1 ${PREFIX}/man/man1/
+ ${INSTALL_MAN} ${WRKSRC}/mad123.1 ${PREFIX}/man/man1/
.include "../../mk/bsd.prefs.mk"
diff --git a/audio/mad123/PLIST b/audio/mad123/PLIST
index b1eb3ab50a5..0262fa8d571 100644
--- a/audio/mad123/PLIST
+++ b/audio/mad123/PLIST
@@ -1,2 +1,3 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2003/07/03 08:32:07 agc Exp $
+@comment $NetBSD: PLIST,v 1.2 2004/09/22 11:16:35 scw Exp $
bin/mad123
+man/man1/mad123.1
diff --git a/audio/mad123/distinfo b/audio/mad123/distinfo
index 16f7ae227cd..d17a15ef66b 100644
--- a/audio/mad123/distinfo
+++ b/audio/mad123/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2003/07/03 11:35:04 agc Exp $
+$NetBSD: distinfo,v 1.3 2004/09/22 11:16:35 scw Exp $
-SHA1 (mad123-0.7.1.tar.gz) = 87952f57789918387f1ef179a46f9b092f1c1ee5
-Size (mad123-0.7.1.tar.gz) = 19359 bytes
+SHA1 (mad123-0.8.3.tar.gz) = e6f19a87d00cdf509a1211cacc9911ad7ea540cf
+Size (mad123-0.8.3.tar.gz) = 24350 bytes
diff --git a/audio/mad123/files/mad123.1 b/audio/mad123/files/mad123.1
deleted file mode 100644
index afd2cd5ca18..00000000000
--- a/audio/mad123/files/mad123.1
+++ /dev/null
@@ -1,147 +0,0 @@
-.\" $NetBSD: mad123.1,v 1.1 2004/04/10 12:58:08 salo Exp $
-.\"
-.\" Copyright (c) 2003 Lubomir Sedlacik
-.\" All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
-.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
-.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-.\" SUCH DAMAGE.
-.\"
-.Dd October 7, 2003
-.Dt mad123 1
-.Os
-.Sh NAME
-.Nm mad123
-.Nd play MPEG audio files
-.Sh SYNOPSIS
-.Nm
-.Op Fl cq
-.Op Fl b Ar size
-.Op Fl f Ar device
-.Op Ar file ...
-.Sh DESCRIPTION
-.Nm
-is a command line MPEG audio files player using Robert Leslie's
-.Dq libmad
-fixed-point MP3 decoder library.
-.Nm
-is not meant to be a serious replacement for the ubiquitous
-.Xr mpg123 1
-program.
-Instead, it is merely an experiment in using libmad.
-.Pp
-At the time
-.Nm
-was written, a couple of things set it apart from the command line player
-supplied with libmad,
-.Xr madplay 1 :
-.Pp
-.Bl -dash -offset indent
-.It
-Support for URL style pathnames.
-.It
-The audio output is double-buffered (currently about 10 seconds worth
-at 44100Hz sample rate).
-This means
-.Nm
-is much less susceptible to network/CPU loading compared to
-.Xr madplay 1 .
-.It
-An intelligent `read-ahead' algorithm can be used to pre-buffer large
-chunks of the input MPEG audio stream.
-.It
-Simple keyboard controls.
-.It
-Ctrl-C behaves like it does for
-.Xr mpg123 1 .
-.It
-.Nm
-can be installed setuid-root (don't worry, it drops privs very early on) so
-that it can adjust the scheduling priorities of its two (sometimes three)
-processes to be even less susceptible to jitter.
-(The third process is used when the MP3 stream is being read from
-an URL).
-.El
-.Sh OPTIONS
-The following options are available:
-.Bl -tag -offset indent
-.It Fl b Ar size
-Allocate a
-.Ar size
-bytes buffer which will be used to read-ahead large chunks of the
-.Ar file
-at a time.
-The
-.Ar file
-will be played even when only a small amount of data has been read in, but
-when the buffer fills, no more data will be read until the buffer has
-drained to 'nearly' empty.
-This behaviour is useful when playing files over a congested network or
-when you'd like to spin down a laptop drive for as long as possible.
-.It Fl c
-Enable keyboard controls. Currently, the following keys are recognised:
-.Pp
-.Bl -tag -width 4n -offset indent -compact
-.It Ic n
-Skip to the next track.
-.It Ic b
-Skip to the previous track.
-.It Ic r
-Rewind to the start of the current track.
-.It Ic p
-Pause.
-.It Ic q
-Quit.
-.El
-.It Fl f Ar device
-Set the audio device to be
-.Ar device .
-The default is
-.Pa /dev/sound .
-.It Fl q
-Be quiet.
-.El
-.Sh EXAMPLES
-Play all MP3 files from the current directory, enable keyboard controls and
-set the read-ahead buffer to 2 MB:
-.Pp
-.Dl "mad123 -c -b 0x200000 *.mp3"
-.Pp
-Play an MP3 stream from an URL, set the read-ahead buffer to 512 kB, be quiet:
-.Pp
-.Dl "mad123 -q -b 0x80000 http://a.server/mp3s/thrash.mp3"
-.Sh NOTES
-A read-ahead buffer smaller than 100 kB is ineffective.
-.Sh SEE ALSO
-.Xr madplay 1 ,
-.Xr mpg123 1
-.Sh AUTHORS
-The
-.Nm
-program was written by
-.An Steve Woodford Aq mad123@mctavish.co.uk .
-This manual page was written by
-.An Lubomir Sedlacik Aq salo@NetBSD.org .
-.Sh BUGS
-There are very few command line options.
-.br
-Many more buffer parameters should be tweakable on the command line.
-.br
-Only the Artist and Title ID3 tags are shown, if available.