diff options
author | torstenb <torstenb@FreeBSD.org> | 1994-10-23 09:16:15 +0800 |
---|---|---|
committer | torstenb <torstenb@FreeBSD.org> | 1994-10-23 09:16:15 +0800 |
commit | 64a261ead690c3009b8b22be5a8627613834270e (patch) | |
tree | e32e522d4e60a6f86340750958f2ebd3e54a148c /audio/sox/files/patch-aa | |
parent | 021f5f703f27a3cbc91f81cb3fd17725d69aa5ea (diff) | |
download | freebsd-ports-gnome-64a261ead690c3009b8b22be5a8627613834270e.tar.gz freebsd-ports-gnome-64a261ead690c3009b8b22be5a8627613834270e.tar.zst freebsd-ports-gnome-64a261ead690c3009b8b22be5a8627613834270e.zip |
Reviewed by:
Submitted by:
Obtained from:
sox - SOund eXchange
Diffstat (limited to 'audio/sox/files/patch-aa')
-rw-r--r-- | audio/sox/files/patch-aa | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/audio/sox/files/patch-aa b/audio/sox/files/patch-aa new file mode 100644 index 000000000000..827485de2259 --- /dev/null +++ b/audio/sox/files/patch-aa @@ -0,0 +1,93 @@ +diff -c -r sbdsp.c.orig sbdsp.c +*** sbdsp.c.orig Mon Jul 26 21:58:00 1993 +--- sbdsp.c Mon Oct 17 16:07:59 1994 +*************** +*** 21,27 **** + #include <i386/isa/sblast.h> + #else + #ifdef LINUXSOUND +! #include <linux/soundcard.h> + #else + #include <sys/sb.h> + #endif +--- 21,27 ---- + #include <i386/isa/sblast.h> + #else + #ifdef LINUXSOUND +! #include <machine/soundcard.h> + #else + #include <sys/sb.h> + #endif +*************** +*** 77,83 **** + ioctl(fileno(ft->fp), DSP_IOCTL_VOICE, &off); + ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, &ft->info.rate); + #elif defined(LINUXSOUND) +! ioctl(fileno(ft->fp), SNDCTL_DSP_SPEED, ft->info.rate); + #else + ioctl(fileno(ft->fp), DSP_IOCTL_VOICE, 0); + ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, ft->info.rate); +--- 77,87 ---- + ioctl(fileno(ft->fp), DSP_IOCTL_VOICE, &off); + ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, &ft->info.rate); + #elif defined(LINUXSOUND) +! #if SOUND_VERSION >= 200 +! ioctl(fileno(ft->fp), SOUND_PCM_WRITE_RATE, &ft->info.rate); +! #else +! ioctl(fileno(ft->fp), SOUND_PCM_WRITE_RATE, ft->info.rate); +! #endif + #else + ioctl(fileno(ft->fp), DSP_IOCTL_VOICE, 0); + ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, ft->info.rate); +*************** +*** 143,149 **** + ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, &ft->info.rate); + #elif defined(LINUXSOUND) + ioctl(fileno(ft->fp), SNDCTL_DSP_SYNC, 0); +! ioctl(fileno(ft->fp), SNDCTL_DSP_SPEED, ft->info.rate); + #else + ioctl(fileno(ft->fp), DSP_IOCTL_VOICE, 1); + ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, ft->info.rate); +--- 147,157 ---- + ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, &ft->info.rate); + #elif defined(LINUXSOUND) + ioctl(fileno(ft->fp), SNDCTL_DSP_SYNC, 0); +! #if SOUND_VERSION >= 200 +! ioctl(fileno(ft->fp), SOUND_PCM_WRITE_RATE, &ft->info.rate); +! #else +! ioctl(fileno(ft->fp), SOUND_PCM_WRITE_RATE, ft->info.rate); +! #endif + #else + ioctl(fileno(ft->fp), DSP_IOCTL_VOICE, 1); + ioctl(fileno(ft->fp), DSP_IOCTL_SPEED, ft->info.rate); +diff -c -r st.h.orig st.h +*** st.h.orig Mon Jul 26 21:58:00 1993 +--- st.h Mon Oct 17 16:19:26 1994 +*************** +*** 34,39 **** +--- 34,43 ---- + #include "amiga.h" + #endif /* AMIGA */ + ++ #ifdef bsd ++ #include <sys/param.h> ++ #endif ++ + /* + * Handler structure for each format. + */ +*************** +*** 211,218 **** +--- 215,226 ---- + #if defined(i386) || !defined(__STDC__) + /* usually be a const in stdlib.h ?? */ + /* this is turning out to be a headache */ ++ ++ #if BSD < 199306 + extern char *sys_errlist[]; + #define strerror(errno) sys_errlist[errno] ++ #endif ++ + #endif + #endif + |