mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-01 22:05:08 +00:00
62 lines
1.9 KiB
Plaintext
62 lines
1.9 KiB
Plaintext
*** 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);
|