39 lines
926 B
Text
39 lines
926 B
Text
--- dsp.c.orig Thu Aug 22 20:51:34 2002
|
|
+++ dsp.c Thu Aug 22 20:54:31 2002
|
|
@@ -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 <sys/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__ */
|
|
|