head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.38 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.36 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.34 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.32 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.30 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.28 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.26 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.24 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.22 pkgsrc-2008Q2-base:1.4 pkgsrc-2008Q1:1.4.0.20 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.18 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.16 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.14 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.12 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.10 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.8 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.6 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.4 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.2 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.3.0.10 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.8 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.6 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.4 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.2 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.2.0.14 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.12 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.10 pkgsrc-2003Q4-base:1.2 netbsd-1-6-1:1.2.0.6 netbsd-1-6-1-base:1.2 netbsd-1-6:1.2.0.8 netbsd-1-6-RELEASE-base:1.2 pkgviews:1.2.0.4 pkgviews-base:1.2 buildlink2:1.2.0.2 buildlink2-base:1.2 netbsd-1-5-PATCH003:1.2 netbsd-1-5-PATCH001:1.2 netbsd-1-5-RELEASE:1.2 netbsd-1-4-PATCH003:1.2 netbsd-1-4-PATCH002:1.2 comdex-fall-1999:1.2 netbsd-1-4-PATCH001:1.2 netbsd-1-4-RELEASE:1.2 netbsd-1-3-PATCH003:1.2 netbsd-1-3-PATCH002:1.1; locks; strict; comment @# @; 1.4 date 2005.11.23.22.39.12; author wiz; state dead; branches; next 1.3; 1.3 date 2004.07.28.08.05.32; author agc; state Exp; branches; next 1.2; 1.2 date 98.08.07.10.36.11; author agc; state Exp; branches; next 1.1; 1.1 date 98.02.22.23.24.35; author hubertf; state Exp; branches; next ; desc @@ 1.4 log @Update to 7.15: About 7 years of development. Includes among others: support for flac, speex, ogg/vorbis; a choice of frontends between motif and gtk; esound support; guile scripting support; and native NetBSD audio code. Some possible future work on this package: Add options for fftw2 fftw3 ladspa gamin/fam mpg123 timidity ruby @ text @$NetBSD: patch-an,v 1.3 2004/07/28 08:05:32 agc Exp $ --- snd-xrec.c.orig 1998-02-02 14:01:06.000000000 +0000 +++ snd-xrec.c 2004-07-28 09:01:33.000000000 +0100 @@@@ -134,8 +134,8 @@@@ { for (j=0;j=nwidth) inx=nwidth-1; - iny = ty + round((x+(float)i/xscl)*matrix[1] + (y+(float)j/yscl)*matrix[3]); if (iny<0) iny=0; if (iny>=nheight) iny=nheight-1; + inx = tx + snd_round((x+(float)i/xscl)*matrix[0] + (y+(float)j/yscl)*matrix[2]); if (inx<0) inx=0; if (inx>=nwidth) inx=nwidth-1; + iny = ty + snd_round((x+(float)i/xscl)*matrix[1] + (y+(float)j/yscl)*matrix[3]); if (iny<0) iny=0; if (iny>=nheight) iny=nheight-1; XPutPixel(after,inx,iny,px); } } @@@@ -1314,7 +1314,11 @@@@ #include #endif -#define DAC_NAME "/dev/dsp" +#ifdef LINUX +# define DAC_NAME "/dev/dsp" +#else /* !LINUX */ +# define DAC_NAME "/dev/audio" +#endif /* LINUX */ #define FRAGMENTS 2 #define FRAGMENT_SIZE 10 @@@@ -1415,8 +1419,11 @@@@ if ((audio_fd = open(DAC_NAME,O_RDONLY,0)) == -1) { record_report(rec,"can't open any inputs!"); - if ((errno == EACCES) || (errno == ENOENT)) - record_report(rec,"(to get input in Linux, we need read permission on /dev/dsp)"); + if ((errno == EACCES) || (errno == ENOENT)){ + char buf[256]; + snprintf(buf,256,"(to get input in Linux, we need read permission on %s)",DAC_NAME); + record_report(rec,buf); + } return(-1); } } @ 1.3 log @audio/snd uses its own round() function, incompatible with the one in math.h in -current - work around this. XXX still statfs problems in -current in this package. @ text @d1 1 a1 1 $NetBSD: patch-an,v 1.2 1998/08/07 10:36:11 agc Exp $ @ 1.2 log @Add NetBSD RCS Ids. @ text @d1 1 a1 1 $NetBSD$ d3 13 a15 2 --- snd.orig/snd-xrec.c Mon Feb 2 15:01:06 1998 +++ snd-xrec.c Sun Feb 22 02:23:01 1998 @ 1.1 log @X based sound editor. @ text @d1 2 @