head 1.4; access; symbols pkgsrc-2021Q1:1.3.0.36 pkgsrc-2021Q1-base:1.3 pkgsrc-2020Q4:1.3.0.34 pkgsrc-2020Q4-base:1.3 pkgsrc-2020Q3:1.3.0.32 pkgsrc-2020Q3-base:1.3 pkgsrc-2020Q2:1.3.0.28 pkgsrc-2020Q2-base:1.3 pkgsrc-2020Q1:1.3.0.8 pkgsrc-2020Q1-base:1.3 pkgsrc-2019Q4:1.3.0.30 pkgsrc-2019Q4-base:1.3 pkgsrc-2019Q3:1.3.0.26 pkgsrc-2019Q3-base:1.3 pkgsrc-2019Q2:1.3.0.24 pkgsrc-2019Q2-base:1.3 pkgsrc-2019Q1:1.3.0.22 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.3.0.20 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.3.0.18 pkgsrc-2018Q3-base:1.3 pkgsrc-2018Q2:1.3.0.16 pkgsrc-2018Q2-base:1.3 pkgsrc-2018Q1:1.3.0.14 pkgsrc-2018Q1-base:1.3 pkgsrc-2017Q4:1.3.0.12 pkgsrc-2017Q4-base:1.3 pkgsrc-2017Q3:1.3.0.10 pkgsrc-2017Q3-base:1.3 pkgsrc-2017Q2:1.3.0.6 pkgsrc-2017Q2-base:1.3 pkgsrc-2017Q1:1.3.0.4 pkgsrc-2017Q1-base:1.3 pkgsrc-2016Q4:1.3.0.2 pkgsrc-2016Q4-base:1.3 pkgsrc-2016Q3:1.2.0.54 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.2.0.52 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.50 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.48 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.2.0.46 pkgsrc-2015Q3-base:1.2 pkgsrc-2015Q2:1.2.0.44 pkgsrc-2015Q2-base:1.2 pkgsrc-2015Q1:1.2.0.42 pkgsrc-2015Q1-base:1.2 pkgsrc-2014Q4:1.2.0.40 pkgsrc-2014Q4-base:1.2 pkgsrc-2014Q3:1.2.0.38 pkgsrc-2014Q3-base:1.2 pkgsrc-2014Q2:1.2.0.36 pkgsrc-2014Q2-base:1.2 pkgsrc-2014Q1:1.2.0.34 pkgsrc-2014Q1-base:1.2 pkgsrc-2013Q4:1.2.0.32 pkgsrc-2013Q4-base:1.2 pkgsrc-2013Q3:1.2.0.30 pkgsrc-2013Q3-base:1.2 pkgsrc-2013Q2:1.2.0.28 pkgsrc-2013Q2-base:1.2 pkgsrc-2013Q1:1.2.0.26 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.24 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.22 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.20 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.2.0.18 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.2.0.16 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.2.0.14 pkgsrc-2011Q3-base:1.2 pkgsrc-2011Q2:1.2.0.12 pkgsrc-2011Q2-base:1.2 pkgsrc-2011Q1:1.2.0.10 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.8 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.6 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.4 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.2 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.1.0.62 pkgsrc-2009Q4-base:1.1 pkgsrc-2009Q3:1.1.0.60 pkgsrc-2009Q3-base:1.1 pkgsrc-2009Q2:1.1.0.58 pkgsrc-2009Q2-base:1.1 pkgsrc-2009Q1:1.1.0.56 pkgsrc-2009Q1-base:1.1 pkgsrc-2008Q4:1.1.0.54 pkgsrc-2008Q4-base:1.1 pkgsrc-2008Q3:1.1.0.52 pkgsrc-2008Q3-base:1.1 cube-native-xorg:1.1.0.50 cube-native-xorg-base:1.1 pkgsrc-2008Q2:1.1.0.48 pkgsrc-2008Q2-base:1.1 cwrapper:1.1.0.46 pkgsrc-2008Q1:1.1.0.44 pkgsrc-2008Q1-base:1.1 pkgsrc-2007Q4:1.1.0.42 pkgsrc-2007Q4-base:1.1 pkgsrc-2007Q3:1.1.0.40 pkgsrc-2007Q3-base:1.1 pkgsrc-2007Q2:1.1.0.38 pkgsrc-2007Q2-base:1.1 pkgsrc-2007Q1:1.1.0.36 pkgsrc-2007Q1-base:1.1 pkgsrc-2006Q4:1.1.0.34 pkgsrc-2006Q4-base:1.1 pkgsrc-2006Q3:1.1.0.32 pkgsrc-2006Q3-base:1.1 pkgsrc-2006Q2:1.1.0.30 pkgsrc-2006Q2-base:1.1 pkgsrc-2006Q1:1.1.0.28 pkgsrc-2006Q1-base:1.1 pkgsrc-2005Q4:1.1.0.26 pkgsrc-2005Q4-base:1.1 pkgsrc-2005Q3:1.1.0.24 pkgsrc-2005Q3-base:1.1 pkgsrc-2005Q2:1.1.0.22 pkgsrc-2005Q2-base:1.1 pkgsrc-2005Q1:1.1.0.20 pkgsrc-2005Q1-base:1.1 pkgsrc-2004Q4:1.1.0.18 pkgsrc-2004Q4-base:1.1 pkgsrc-2004Q3:1.1.0.16 pkgsrc-2004Q3-base:1.1 pkgsrc-2004Q2:1.1.0.14 pkgsrc-2004Q2-base:1.1 pkgsrc-2004Q1:1.1.0.12 pkgsrc-2004Q1-base:1.1 pkgsrc-2003Q4:1.1.0.10 pkgsrc-2003Q4-base:1.1 netbsd-1-6-1:1.1.0.6 netbsd-1-6-1-base:1.1 netbsd-1-6:1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.0.4 pkgviews-base:1.1 buildlink2:1.1.0.2 buildlink2-base:1.1 netbsd-1-5-PATCH003:1.1 netbsd-1-5-PATCH001:1.1 netbsd-1-5-RELEASE:1.1 netbsd-1-4-PATCH003:1.1 netbsd-1-4-PATCH002:1.1 comdex-fall-1999:1.1 netbsd-1-4-PATCH001:1.1 netbsd-1-4-RELEASE:1.1; locks; strict; comment @# @; 1.4 date 2021.05.25.10.44.22; author thor; state dead; branches; next 1.3; commitid NC0jDZEqqBVO7wUC; 1.3 date 2016.12.18.22.58.34; author adam; state Exp; branches; next 1.2; commitid lm2gzQdnR0tEgwyz; 1.2 date 2010.03.14.14.19.19; author martin; state Exp; branches; next 1.1; 1.1 date 99.04.08.07.35.56; author tron; state Exp; branches; next ; desc @@ 1.4 log @audio/mpg123*: update to 1.27.2, simplify things This updates the mpg123 version and also removes packaging cruft. Among that, a never-working patch for madvise and a very old i586 assembly source are gone. The output modules are now installed without libtool files, just as .so (or .dylib). A future update to 1.28 will probably also get rid of the static libraries (upstream fixed the build to work around pkgsrc's wrapped libtool which ignores the autoconf macros to trigger non-static default build). These are the upstream changes: 1.27.2 ------ (Trying some svn tag discipline: 1.27.1 has been tagged before, but not released. Let's increment for any change.) - Removed ports/Xcode, ports/cmake should handle that case. - Ensure debug.h is included last where it matters to avoid conflicts with debug/warning macros in system headers (bug 308). - Fix some debug/printf integer casts for 32 bit platforms (bug 309). 1.27.0 ------ - libmpg123: -- Running on precomputed tables now, no need to call mpg123_init() anymore. That and mpg123_exit() are both just empty shells. You can omit them if you do not care about earlier libmpg123. You can check for MPG123_API_VERSION >= 46. -- Added API that avoids enums, mapped-to by default unless MPG123_ENUM_API is defined. - libout123: -- Added API that avoids enums, mapped-to by default unless MPG123_ENUM_API is defined. -- Added device enumeration for win32, win32_wasapi, alsa, pulse. This increments the output module ABI version to 3. -- You can choose output devices now on Windows. -- Changed default output module order to put pulse before alsa since we now ensure that pulse is not inadvertedly started by the autospawn feature. This improves the experience on desktop systems with pulse where the alsa to pulse use causes glitches. Note that on a modern Linux desktop (Ubuntu), you will not escape an instance of pulseaudio being started, with even the enumeration of the ALSA default device summoning the daemon. If you _want_ sound daemon autospawn behaviour on other platforms, you need to trigger it outside of libout123. - examples: Update for dropped mpg123_init(), more sensible copyright notes. - out123: -- safer limiting of maximum playback rate -- Added --list-devices. - mpg123: -- Fix --continue output to print track_count+1 as continue position after hitting the end of playlist. Makes scripts/conplay go to back to the beginning again (regression in 1.24.0, bug 250). -- Remote control API version 9 with @@I { .. @@I } wrapping of ID3 and playlist display. -- Added --list-devices. -- Fix console printout on Windows. -- Fix terminal control logic to better handle cases where stdin or stderr is not a terminal, also avoid enabling control if you specify stdin as input file. - Updated debugging/warning/error message macros to include the function name. @ text @$NetBSD: patch-af,v 1.3 2016/12/18 22:58:34 adam Exp $ --- src/libout123/xfermem.c.orig 2016-09-26 21:20:25.000000000 +0000 +++ src/libout123/xfermem.c @@@@ -36,6 +36,13 @@@@ void xfermem_init (txfermem **xf, size_t #ifdef HAVE_MMAP # ifdef MAP_ANON + +#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104030000) + if(madvise((void *)xf, (regsize - sizeof(txfermem)), + MADV_SEQUENTIAL) < 0) + fprintf(stderr,"madvise failed, continuing anyway...\n"); +#endif + if ((*xf = (txfermem *) mmap(0, regsize, PROT_READ | PROT_WRITE, MAP_ANON | MAP_SHARED, -1, 0)) == (txfermem *) -1) { perror ("mmap()"); @@@@ -93,6 +100,10 @@@@ void xfermem_done (txfermem *xf) Casting to (void*) should silence compilers in case of funny prototype for munmap(). */ munmap ( (void*)xf, xf->size + xf->metasize + sizeof(txfermem)); +#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104030000) + if(madvise((void *)xf, (xf->size + xf->metasize), MADV_FREE) < 0) + fprintf(stderr,"madvise failed, continuing anyways..\n"); +#endif #else if (shmdt((void *) xf) == -1) { perror ("shmdt()"); @ 1.3 log @Changes 1.23.8: - Fix long-standing bad memory read (via integer underflow) in ID3 parser for crafted ID3v2 tags with tiny size information @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Update mpg123 to version 1.10.1. Thanks to for answering lots of stupid questions and general guidance. @ text @d3 3 a5 3 --- src/xfermem.c.orig 2009-12-05 21:26:24.000000000 +0100 +++ src/xfermem.c 2010-02-06 20:14:14.000000000 +0100 @@@@ -37,6 +37,13 @@@@ d19 4 a22 7 @@@@ -92,7 +99,13 @@@@ if(!xf) return; #ifdef HAVE_MMAP - munmap ((caddr_t) xf, xf->size + xf->metasize + sizeof(txfermem)); + munmap ((void *) xf, xf->size + xf->metasize + sizeof(txfermem)); + a26 1 + @ 1.1 log @Update "mpg123" to version 0.59q. Patches supplied by Jeff Rizzo in PR pkg/7338. @ text @d3 3 a5 5 --- audio.c.orig Mon Nov 23 08:16:24 1998 +++ audio.c Wed Apr 7 16:23:29 1999 @@@@ -81,10 +81,14 @@@@ k1 = NUM_RATES; } d7 7 a13 7 +#ifndef NETBSD if(audio_open(&ai1) < 0) { perror("audio"); exit(1); } +#else + audio_open(&ai1); d15 19 a33 3 for(i=0;i