1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
freebsd-ports/audio/sox/files/patch-aa

62 lines
1.9 KiB
Plaintext
Raw Normal View History

1994-11-01 22:14:31 +00:00
*** sbdsp.c.orig Mon Jul 26 12:58:00 1993
--- sbdsp.c Mon Oct 31 18:26:56 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);