summaryrefslogtreecommitdiff
path: root/audio/snd/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-11-23 22:39:12 +0000
committerwiz <wiz@pkgsrc.org>2005-11-23 22:39:12 +0000
commitd528fcc9f2610d482104dd5ff41eb89d1bed089c (patch)
treeff13d7c4276fbc0c4831fac16468b85b25cffbb0 /audio/snd/patches
parentf2dcd9fac745670be18e1c4575f3ebbd61bf4561 (diff)
downloadpkgsrc-d528fcc9f2610d482104dd5ff41eb89d1bed089c.tar.gz
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
Diffstat (limited to 'audio/snd/patches')
-rw-r--r--audio/snd/patches/patch-aa28
-rw-r--r--audio/snd/patches/patch-ab13
-rw-r--r--audio/snd/patches/patch-ac22
-rw-r--r--audio/snd/patches/patch-ad13
-rw-r--r--audio/snd/patches/patch-ae35
-rw-r--r--audio/snd/patches/patch-af16
-rw-r--r--audio/snd/patches/patch-ag17
-rw-r--r--audio/snd/patches/patch-ah28
-rw-r--r--audio/snd/patches/patch-ai13
-rw-r--r--audio/snd/patches/patch-aj30
-rw-r--r--audio/snd/patches/patch-ak13
-rw-r--r--audio/snd/patches/patch-al13
-rw-r--r--audio/snd/patches/patch-am13
-rw-r--r--audio/snd/patches/patch-an42
-rw-r--r--audio/snd/patches/patch-ao13
-rw-r--r--audio/snd/patches/patch-ap13
-rw-r--r--audio/snd/patches/patch-aq26
-rw-r--r--audio/snd/patches/patch-ar62
-rw-r--r--audio/snd/patches/patch-as12
19 files changed, 0 insertions, 422 deletions
diff --git a/audio/snd/patches/patch-aa b/audio/snd/patches/patch-aa
deleted file mode 100644
index a7e0488e9ee..00000000000
--- a/audio/snd/patches/patch-aa
+++ /dev/null
@@ -1,28 +0,0 @@
-$NetBSD: patch-aa,v 1.2 1998/08/07 10:36:08 agc Exp $
-
---- snd.orig/snd.h Thu Feb 12 15:36:40 1998
-+++ snd.h Sun Feb 22 02:19:27 1998
-@@ -21,17 +21,21 @@
- #include "sound_types.h"
- #include "cmus_prototypes.h"
-
--#if defined(SGI) || defined(LINUX) || defined(NEXT) || defined(SCO5) || defined(UW2) || defined(SOLARIS)
-+#ifndef HAVE_MOTIF
-+#if defined(SGI) || defined(LINUX) || defined(NEXT) || defined(SCO5) || defined(UW2) || defined(SOLARIS) || defined(__NetBSD__)
- #define HAVE_MOTIF 1
- #else
- #define HAVE_MOTIF 0
- #endif
-+#endif /* HAVE_MOTIF */
-
--#if defined(LINUX) || defined(SCO5) || defined(UW2)
-+#ifndef HAVE_OSS
-+#if defined(LINUX) || defined(SCO5) || defined(UW2) || defined(__NetBSD__)
- #define HAVE_OSS 1
- #else
- #define HAVE_OSS 0
- #endif
-+#endif /* HAVE_OSS */
-
- #include "snd-0.h"
-
diff --git a/audio/snd/patches/patch-ab b/audio/snd/patches/patch-ab
deleted file mode 100644
index d571c4a5f52..00000000000
--- a/audio/snd/patches/patch-ab
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ab,v 1.2 1998/08/07 10:36:09 agc Exp $
-
---- snd.orig/cmus.h Thu Jan 22 15:08:02 1998
-+++ cmus.h Sun Feb 22 02:04:51 1998
-@@ -17,7 +17,7 @@
-
- /* due to project builder stupidity, we can't always depend on -D flags here (maybe we need a CLM_SND_OS macro?) */
-
--#if (!(defined(SGI))) && (!(defined(NEXT))) && (!(defined(LINUX))) && (!(defined(MACOS))) && (!(defined(BEOS))) && (!(defined(SUN))) && (!(defined(UW2))) && (!(defined(SCO5)))
-+#if (!(defined(SGI))) && (!(defined(NEXT))) && (!(defined(LINUX))) && (!(defined(MACOS))) && (!(defined(BEOS))) && (!(defined(SUN))) && (!(defined(UW2))) && (!(defined(SCO5))) && (!(defined(__NetBSD__)))
- #if defined(__dest_os)
- /* we're in Metrowerks Land */
- #if (__dest_os == __be_os)
diff --git a/audio/snd/patches/patch-ac b/audio/snd/patches/patch-ac
deleted file mode 100644
index a59a2242558..00000000000
--- a/audio/snd/patches/patch-ac
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-ac,v 1.2 1998/08/07 10:36:09 agc Exp $
-
---- snd.orig/cmus_prototypes.h Thu Feb 12 15:36:33 1998
-+++ cmus_prototypes.h Sun Feb 22 02:05:30 1998
-@@ -208,7 +208,7 @@
- #endif
-
- /* pipe.c */
--#if defined(SGI) || defined(LINUX)
-+#if defined(SGI) || defined(LINUX) || defined(__NetBSD__)
- int write_snd_fifo(char *buf, int len);
- #endif
-
-@@ -229,7 +229,7 @@
- void set_rt_record_p (int rt);
- int clm_read_any(int tfd, int beg, int chans, int nints, int **bufs, int *cm);
-
--#if defined(SGI) || defined(LINUX)
-+#if defined(SGI) || defined(LINUX) || defined(__NetBSD__)
- float c_control (int n);
- float c_set_control (int n, float val);
- int c_open_controls (int size);
diff --git a/audio/snd/patches/patch-ad b/audio/snd/patches/patch-ad
deleted file mode 100644
index d8e2463b73e..00000000000
--- a/audio/snd/patches/patch-ad
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ad,v 1.2 1998/08/07 10:36:09 agc Exp $
-
---- snd.orig/io.c Mon Feb 2 14:59:54 1998
-+++ io.c Sun Feb 22 02:06:44 1998
-@@ -399,7 +399,7 @@
- * many cases -- the output buffer can collect many notes before flushing, etc.
- */
-
--#if defined(SGI) || defined(LINUX) || defined(UW2) || defined(SCO5)
-+#if defined(SGI) || defined(LINUX) || defined(UW2) || defined(SCO5) || defined(__NetBSD__)
- #define FILE_DESCRIPTORS 256
- #define BASE_FILE_DESCRIPTORS 200
- #else
diff --git a/audio/snd/patches/patch-ae b/audio/snd/patches/patch-ae
deleted file mode 100644
index 07754910daf..00000000000
--- a/audio/snd/patches/patch-ae
+++ /dev/null
@@ -1,35 +0,0 @@
-$NetBSD: patch-ae,v 1.9 2002/09/21 01:02:05 jlam Exp $
-
---- makefile.netbsd.orig Mon Aug 9 19:22:24 1999
-+++ makefile.netbsd Mon Aug 9 19:25:36 1999
-@@ -0,0 +1,30 @@
-+# Snd make file for NetBSD, assuming Motif is available (audio currently stubbed out)
-+
-+#CC = gcc
-+#CFLAGS = -O2 -DXPM -DHAVE_OSS -I${X11BASE}/include
-+CFLAGS += -DXPM -DHAVE_OSS -I${X11BASE}/include
-+CFLAGS += -g
-+
-+LIBS = ${LDFLAGS} -lMrm -lXm -lXpm -lXmu -lSM -lXt -lXext -lX11 -lm -lossaudio
-+CLM_HEADERS = cmus_prototypes.h cmus.h sound_types.h
-+SND_HEADERS = snd.h snd-0.h snd-1.h snd-ufun.h snd-strings.h sndclm.h
-+SND_X_HEADERS = snd-x0.h snd-x1.h
-+
-+CLM_O_FILES = io.o headers.o
-+
-+O_FILES = snd-io.o snd-utils.o snd-parser.o snd-axis.o snd-data.o snd-fft.o snd-marks.o snd-file.o snd-edits.o snd-chn.o snd-dac.o snd-clip.o snd-find.o snd-snd.o snd-help.o snd-clm.o snd-main.o snd-print.o snd-ufun.o snd-ufunex.o snd-apply.o snd-trans.o snd-mix.o snd.o snd-env.o
-+
-+X_O_FILES = snd-xutils.o snd-xdata.o snd-xmenu.o snd-xchn.o snd-xsnd.o snd-xdac.o snd-xclip.o snd-xmain.o snd-xclm.o snd-xmix.o snd-xrec.o snd-xenv.o
-+
-+snd: $(CLM_HEADERS) $(SND_HEADERS) $(SND_X_HEADERS) $(CLM_O_FILES) $(O_FILES) $(X_O_FILES)
-+ $(CC) $(CLM_O_FILES) $(O_FILES) $(X_O_FILES) -o snd $(LIBS)
-+
-+$(CLM_O_FILES): $(CLM_HEADERS)
-+$(O_FILES): $(SND_HEADERS) $(SND_X_HEADERS)
-+$(X_O_FILES): $(SND_HEADERS) $(SND_X_HEADERS)
-+
-+clean:
-+ rm -f $(CLM_O_FILES)
-+ rm -f $(O_FILES)
-+ rm -f $(X_O_FILES)
-+
diff --git a/audio/snd/patches/patch-af b/audio/snd/patches/patch-af
deleted file mode 100644
index 507792d82e0..00000000000
--- a/audio/snd/patches/patch-af
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-af,v 1.2 1998/08/07 10:36:09 agc Exp $
-
---- snd.orig/snd-clm.c Thu Feb 12 15:37:13 1998
-+++ snd-clm.c Sun Feb 22 02:20:40 1998
-@@ -753,7 +753,11 @@
- {
- /* turn off inputs (they create an unbelievable amount of noise) and maximize outputs */
- int fd,amp,devmask;
-+#ifdef __NetBSD__
-+ fd = open("/dev/audio",O_WRONLY,0);
-+#else /* !__NetBSD__ */
- fd = open("/dev/dsp",O_WRONLY,0);
-+#endif /* __NetBSD__ */
- if (fd == -1) return;
- amp = 0;
- ioctl(fd,SOUND_MIXER_READ_DEVMASK,&devmask);
diff --git a/audio/snd/patches/patch-ag b/audio/snd/patches/patch-ag
deleted file mode 100644
index a3ecfbdf48b..00000000000
--- a/audio/snd/patches/patch-ag
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-ag,v 1.2 1998/08/07 10:36:10 agc Exp $
-
---- snd.orig/snd-dac.c Mon Dec 22 17:22:48 1997
-+++ snd-dac.c Sun Feb 22 02:25:39 1998
-@@ -200,7 +200,11 @@
- #include <soundcard.h>
- #endif
-
--#define DAC_NAME "/dev/dsp"
-+#ifdef LINUX
-+# define DAC_NAME "/dev/dsp"
-+#else /* !LINUX */
-+# define DAC_NAME "/dev/audio" /* /dev/sound? - HF */
-+#endif /* LINUX */
- #define FRAGMENTS 2
- #define FRAGMENT_SIZE 10
-
diff --git a/audio/snd/patches/patch-ah b/audio/snd/patches/patch-ah
deleted file mode 100644
index 718e15310b9..00000000000
--- a/audio/snd/patches/patch-ah
+++ /dev/null
@@ -1,28 +0,0 @@
-$NetBSD: patch-ah,v 1.4 2005/09/06 08:10:57 abs Exp $
-
---- snd-file.c.orig 1998-02-10 08:42:41.000000000 -0600
-+++ snd-file.c
-@@ -15,6 +15,14 @@
- #include <sys/vfs.h>
- #endif
-
-+#if defined (__NetBSD__)
-+ #include <sys/param.h>
-+ #include <sys/mount.h>
-+ #if (__NetBSD_Version__ >= 299000900) /* NetBSD 2.99.9 */
-+ #define statfs statvfs
-+ #endif
-+#endif
-+
- #ifdef BEOS
- int disk_kspace (int fd) {return(1234567);}
- time_t file_write_date(char *filename) {return(1234567);}
-@@ -26,7 +34,7 @@ int disk_kspace (int fd)
- #if defined(SGI) || defined(SCO5) || defined(UW2) || defined(SOLARIS)
- err = fstatfs(fd,&buf,sizeof(buf),0);
- #endif
--#if defined(LINUX) || defined(NEXT)
-+#if defined(LINUX) || defined(NEXT) || defined(__NetBSD__)
- err = fstatfs(fd,&buf);
- #endif
- /* in 32 bit land, the number of bytes can easily go over 2^32, so we'll look at kbytes here */
diff --git a/audio/snd/patches/patch-ai b/audio/snd/patches/patch-ai
deleted file mode 100644
index a04b21f7d84..00000000000
--- a/audio/snd/patches/patch-ai
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ai,v 1.2 1998/08/07 10:36:10 agc Exp $
-
---- snd.orig/snd-ufun.c Mon Dec 22 17:24:11 1997
-+++ snd-ufun.c Sun Feb 22 02:12:45 1998
-@@ -2,7 +2,7 @@
-
- #ifndef NEXT
-
--#if defined(SGI) || defined(SCO5) || defined(UW2)
-+#if defined(SGI) || defined(SCO5) || defined(UW2) || defined(__NetBSD__)
- #include <dlfcn.h>
- #endif
-
diff --git a/audio/snd/patches/patch-aj b/audio/snd/patches/patch-aj
deleted file mode 100644
index 6d3356dd20b..00000000000
--- a/audio/snd/patches/patch-aj
+++ /dev/null
@@ -1,30 +0,0 @@
-$NetBSD: patch-aj,v 1.2 1998/08/07 10:36:10 agc Exp $
-
---- snd.orig/snd-x0.h Wed Dec 17 19:12:04 1997
-+++ snd-x0.h Sun Feb 22 02:14:17 1998
-@@ -14,14 +14,14 @@
- * All the documentation says this is dangerous, so it's on this switch
- */
-
--#if defined(LINUX) || defined(SCO5) || defined(UW2) || defined(SOLARIS)
-+#if defined(LINUX) || defined(SCO5) || defined(UW2) || defined(SOLARIS) || defined(__NetBSD__)
- #define RESIZE_DIALOG 1
- /* these versions of Motif need to be told to allow a dialog to include resize controls */
- #else
- #define RESIZE_DIALOG 0
- #endif
-
--#if defined(LINUX) || defined(SCO5) || defined(UW2) || defined(SOLARIS)
-+#if defined(LINUX) || defined(SCO5) || defined(UW2) || defined(SOLARIS) || defined(__NetBSD__)
- #define MANAGE_DIALOG 1
- /* these versions of Motif need to "manage" a dialog before dealing with its children */
- #else
-@@ -67,7 +67,7 @@
- #define CONTROLS_MARGIN 0
- #endif
-
--#if defined(LINUX) || defined(SCO5) || defined(UW2) || defined(SOLARIS)
-+#if defined(LINUX) || defined(SCO5) || defined(UW2) || defined(SOLARIS) || defined(__NetBSD__)
- #define LINE_MARGIN 4
- #define CONTROLS_MARGIN 1
- #define TOGGLE_SIZE 13
diff --git a/audio/snd/patches/patch-ak b/audio/snd/patches/patch-ak
deleted file mode 100644
index b96f868d94d..00000000000
--- a/audio/snd/patches/patch-ak
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ak,v 1.2 1998/08/07 10:36:10 agc Exp $
-
---- snd.orig/snd-x1.h Thu Jan 22 15:08:49 1998
-+++ snd-x1.h Sun Feb 22 02:14:34 1998
-@@ -328,7 +328,7 @@
- void reflect_group_speed_change(snd_state *ss, grp_info *g, float speed);
- void reflect_group_tempo_change(grp_info *g, float speed);
-
--#ifdef LINUX
-+#if defined(LINUX) || defined(__NetBSD__)
- void override_toggle_translation(Widget w);
- #endif
-
diff --git a/audio/snd/patches/patch-al b/audio/snd/patches/patch-al
deleted file mode 100644
index 5c664e67fc9..00000000000
--- a/audio/snd/patches/patch-al
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-al,v 1.2 1998/08/07 10:36:11 agc Exp $
-
---- snd.orig/snd-xmain.c Mon Feb 2 15:00:56 1998
-+++ snd-xmain.c Sun Feb 22 02:14:56 1998
-@@ -42,7 +42,7 @@
- #define OPEN_CTRLS_HEIGHT 185
- #define ICON_TYPE 1
- #endif
--#if defined(LINUX) || defined(SCO5) || defined(UW2) || defined(SOLARIS)
-+#if defined(LINUX) || defined(SCO5) || defined(UW2) || defined(SOLARIS) || defined(__NetBSD__)
- #define BUTTON_FONT "-*-times-medium-r-*-*-12-*-*-*-*-*-iso8859-1"
- #define BOLD_BUTTON_FONT "-*-times-bold-r-*-*-12-*-*-*-*-*-iso8859-1"
- #define AXIS_LABEL_FONT "-*-times-medium-r-normal-*-16-*-*-*-*-*-iso8859-1"
diff --git a/audio/snd/patches/patch-am b/audio/snd/patches/patch-am
deleted file mode 100644
index 63339db6959..00000000000
--- a/audio/snd/patches/patch-am
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-am,v 1.2 1998/08/07 10:36:11 agc Exp $
-
---- snd.orig/snd-xmenu.c Thu Feb 5 15:01:39 1998
-+++ snd-xmenu.c Sun Feb 22 02:15:33 1998
-@@ -2900,7 +2900,7 @@
- XtSetArg(args[n],XmNtopAttachment,(last_row) ? XmATTACH_WIDGET : XmATTACH_FORM); n++;
- if (last_row) {XtSetArg(args[n],XmNtopWidget,last_row); n++;}
- XtSetArg(args[n],XmNbottomAttachment,XmATTACH_NONE); n++;
--#if defined(LINUX) || defined(SCO5) || defined(UW2) || defined(SUN)
-+#if defined(LINUX) || defined(SCO5) || defined(UW2) || defined(SUN) || defined(__NetBSD__)
- XtSetArg(args[n],XmNheight,17); n++;
- #else
- XtSetArg(args[n],XmNheight,20); n++;
diff --git a/audio/snd/patches/patch-an b/audio/snd/patches/patch-an
deleted file mode 100644
index 7fb54979cb9..00000000000
--- a/audio/snd/patches/patch-an
+++ /dev/null
@@ -1,42 +0,0 @@
-$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<by0;j++)
- {
-- inx = tx + 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 + 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 <soundcard.h>
- #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);
- }
- }
diff --git a/audio/snd/patches/patch-ao b/audio/snd/patches/patch-ao
deleted file mode 100644
index 929a98b9ba8..00000000000
--- a/audio/snd/patches/patch-ao
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ao,v 1.1 2004/07/28 08:05:32 agc Exp $
-
---- snd-1.h 2004/07/28 07:54:48 1.1
-+++ snd-1.h 2004/07/28 07:55:08
-@@ -474,7 +474,7 @@
- char *sound_type(int type);
- char *sound_format (int format);
- char *copy_string (char *str);
--int round(float x);
-+int snd_round(float x);
- void snd_error (char *msg);
- char *filename_without_home_directory(char *name);
- char *just_filename(char *name);
diff --git a/audio/snd/patches/patch-ap b/audio/snd/patches/patch-ap
deleted file mode 100644
index 7ee8e2fe107..00000000000
--- a/audio/snd/patches/patch-ap
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ap,v 1.1 2004/07/28 08:05:32 agc Exp $
-
---- snd-snd.c 2004/07/28 07:57:26 1.1
-+++ snd-snd.c 2004/07/28 07:58:29
-@@ -668,7 +668,7 @@
- break;
- case SPEED_AS_SEMITONE:
- /* find closest semitone to val */
-- semi = round(log(val)*((float)tones/log(2.0)));
-+ semi = snd_round(log(val)*((float)tones/log(2.0)));
- /* space until (-) num (-52 to 52 is its range if 12-tone) */
- for (i=0;i<3;i++) srcbuf[i] = ' ';
- sprintf(src_txt_buf,"%d",semi);
diff --git a/audio/snd/patches/patch-aq b/audio/snd/patches/patch-aq
deleted file mode 100644
index fa1f593da6d..00000000000
--- a/audio/snd/patches/patch-aq
+++ /dev/null
@@ -1,26 +0,0 @@
-$NetBSD: patch-aq,v 1.1 2004/07/28 08:05:32 agc Exp $
-
---- snd-xenv.c 2004/07/28 07:57:26 1.1
-+++ snd-xenv.c 2004/07/28 07:57:56
-@@ -278,8 +278,8 @@
- int cols,rows,i,j,width,height,x,y,k;
- if (all_envs_top > 1)
- {
-- cols = round(sqrt((float)(all_envs_top * env_window_width) / (float)env_window_height));
-- rows = round((float)all_envs_top/(float)cols);
-+ cols = snd_round(sqrt((float)(all_envs_top * env_window_width) / (float)env_window_height));
-+ rows = snd_round((float)all_envs_top/(float)cols);
- if ((rows*cols) < all_envs_top) rows++;
- }
- else
-@@ -312,8 +312,8 @@
- return(0);
- else
- {
-- cols = round(sqrt((float)(all_envs_top * env_window_width) / (float)env_window_height));
-- rows = round((float)all_envs_top/(float)cols);
-+ cols = snd_round(sqrt((float)(all_envs_top * env_window_width) / (float)env_window_height));
-+ rows = snd_round((float)all_envs_top/(float)cols);
- if ((rows*cols) < all_envs_top) rows++;
- width = (int)((float)env_window_width/(float)cols);
- height = (int)((float)env_window_height/(float)rows);
diff --git a/audio/snd/patches/patch-ar b/audio/snd/patches/patch-ar
deleted file mode 100644
index 04a1e111c07..00000000000
--- a/audio/snd/patches/patch-ar
+++ /dev/null
@@ -1,62 +0,0 @@
-$NetBSD: patch-ar,v 1.1 2004/07/28 08:05:32 agc Exp $
-
---- snd-xsnd.c 2004/07/28 07:57:26 1.1
-+++ snd-xsnd.c 2004/07/28 07:58:15
-@@ -429,10 +429,10 @@
- val = 0;
- else
- {
-- val = round(amp / (float)(SCROLLBAR_LINEAR_MULT));
-+ val = snd_round(amp / (float)(SCROLLBAR_LINEAR_MULT));
- if (val > SCROLLBAR_LINEAR_MAX)
- {
-- val = round((log(amp)*((float)SCROLLBAR_MAX*.2)) + SCROLLBAR_MID);
-+ val = snd_round((log(amp)*((float)SCROLLBAR_MAX*.2)) + SCROLLBAR_MID);
- }
- }
- return(val);
-@@ -501,7 +501,7 @@
- int snd_srate_to_int(float val)
- {
- if (val > 0.0)
-- return(round(450.0 + 150.0 * log(val)));
-+ return(snd_round(450.0 + 150.0 * log(val)));
- else return(0);
- }
-
-@@ -556,7 +556,7 @@
- {
- int val;
- val = ep/.0009697;
-- if (val>100) val = round(450+150*log(ep));
-+ if (val>100) val = snd_round(450+150*log(ep));
- return(val);
- }
-
-@@ -623,7 +623,7 @@
-
- int snd_contrast_to_int(float val)
- {
-- return(round(val*10));
-+ return(snd_round(val*10));
- }
-
- void snd_contrast_changed(snd_info *sp, int val)
-@@ -688,7 +688,7 @@
-
- int snd_revscl_to_int(float val)
- {
-- return(round(pow(val,0.333)*60.0));
-+ return(snd_round(pow(val,0.333)*60.0));
- }
-
- void snd_revscl_changed(snd_info *sp, int val)
-@@ -751,7 +751,7 @@
-
- int snd_revlen_to_int(float val)
- {
-- return(round(val*20.0));
-+ return(snd_round(val*20.0));
- }
-
- void snd_revlen_changed(snd_info *sp, int val)
diff --git a/audio/snd/patches/patch-as b/audio/snd/patches/patch-as
deleted file mode 100644
index 1ff4ada894c..00000000000
--- a/audio/snd/patches/patch-as
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-as,v 1.1 2004/07/28 08:05:32 agc Exp $
-
---- snd-utils.c 2004/07/28 07:57:26 1.1
-+++ snd-utils.c 2004/07/28 07:58:23
-@@ -1,6 +1,6 @@
- #include "snd.h"
-
--int round(float x)
-+int snd_round(float x)
- {
- int i;
- i=x;