diff options
| author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-01-28 03:50:57 +0000 |
|---|---|---|
| committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-01-28 03:50:57 +0000 |
| commit | e22dc21f0841391af451eb11ce2970281fc615af (patch) | |
| tree | d76f39bc291dceeec28994c20f7404726a91aa31 /audio/s3mod/files/patch-ad | |
| parent | update to 1.21 (diff) | |
- Support MAKE properly
- Support install macros
- Apply to 'one file per patch' convention
- Add WWW: line
PR: 24667
Submitted by: tkato@prontomail.ne.jp
Notes
Notes:
svn path=/head/; revision=37661
Diffstat (limited to 'audio/s3mod/files/patch-ad')
| -rw-r--r-- | audio/s3mod/files/patch-ad | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/audio/s3mod/files/patch-ad b/audio/s3mod/files/patch-ad new file mode 100644 index 000000000000..db8cd7dadaa4 --- /dev/null +++ b/audio/s3mod/files/patch-ad @@ -0,0 +1,39 @@ +--- dsp.c.orig Sat Oct 21 15:40:29 1995 ++++ dsp.c Sat Jan 27 15:24:31 2001 +@@ -22,14 +22,14 @@ + * linux_dsp.c - Support for the Linux DSP driver from the Voxware(C) Drivers. + */ + +-#ifdef LINUX ++#ifdef __FreeBSD__ + #include "config.h" + #include <unistd.h> + #include <stdio.h> + #include <fcntl.h> + #include <sys/types.h> +-#include <linux/soundcard.h> +-#include <bytesex.h> ++#include <machine/soundcard.h> ++#include <machine/endian.h> + #include "main.h" + #include "dsp.h" + +@@ -68,11 +68,6 @@ + printf("Unable to get audio blocksize\n"); + exit(1); + } +- if ((audio_buffer_size < 4096) || (audio_buffer_size > 131072)) +- { +- printf("Invalid audio buffer size: %d\n",audio_buffer_size); +- exit(1); +- } + if (!(audio_start_buffer = (uint8 *) malloc(audio_buffer_size))) + { + printf("Could not get audio buffer memory!\n"); +@@ -93,5 +88,5 @@ + return; + } + +-#endif /* ?LINUX */ ++#endif /* ?__FreeBSD__ */ + |
