openbsd-ports/graphics/xanim/patches/patch-c
espie edb3c32afe - Upgrade to xanim 2.80.0.
- cleaned up audio support, with less AUDIO_SETINFO, no more waiting
  forever on wss.
1999-03-19 01:20:47 +00:00

83 lines
1.6 KiB
Plaintext

--- xanim.h.orig Thu Mar 18 22:09:00 1999
+++ xanim.h Thu Mar 18 22:29:48 1999
@@ -32,10 +32,12 @@
#else
#ifndef __CYGWIN32__
#ifndef __FreeBSD__
+#ifndef __OpenBSD__
#include <malloc.h>
#endif
#endif
#endif
+#endif
#include <unistd.h>
@@ -289,6 +291,7 @@
xaULONG fromfile;
xaULONG bufferit;
double scale;
+ double amp_scale;
char *device;
} XA_AUD_FLAGS;
@@ -298,30 +301,42 @@
#ifdef XA_SPARC_AUDIO
#define XA_AUDIO 1
+#define XA_NORMAL_AUDIO_WRITES 1
#endif
#ifdef XA_MMS_AUDIO
#define XA_AUDIO 1
#endif
#ifdef XA_AIX_AUDIO
#define XA_AUDIO 1
+#define XA_NORMAL_AUDIO_WRITES 1
#endif
#ifdef XA_NetBSD_AUDIO
#define XA_AUDIO 1
+#define XA_BSD_AUDIO 1
+#define XA_NORMAL_AUDIO_WRITES 1
+#endif
+#ifdef XA_OpenBSD_AUDIO
+#define XA_AUDIO 1
+#define XA_BSD_AUDIO 1
+#define XA_NORMAL_AUDIO_WRITES 1
#endif
#ifdef XA_LINUX_AUDIO
#define XA_AUDIO 1
+#define XA_NORMAL_AUDIO_WRITES 1
#endif
#ifdef XA_SGI_AUDIO
#define XA_AUDIO 1
#endif
#ifdef XA_HPDEV_AUDIO
#define XA_AUDIO 1
+#define XA_NORMAL_AUDIO_WRITES 1
#endif
#ifdef XA_HP_AUDIO
#define XA_AUDIO 1
#endif
#ifdef XA_EWS_AUDIO
#define XA_AUDIO 1
+#define XA_NORMAL_AUDIO_WRITES 1
#endif
#ifdef XA_SONY_AUDIO
#define XA_AUDIO 1
@@ -334,6 +349,7 @@
#endif
#ifdef XA_TOWNS_AUDIO
#define XA_AUDIO 1
+#define XA_NORMAL_AUDIO_WRITES 1
#endif
#ifdef XA_TOWNS8_AUDIO
#define XA_AUDIO 1
@@ -433,6 +449,7 @@
xaUBYTE *snd; /* sound if present */
struct XA_SND_STRUCT *prev;
struct XA_SND_STRUCT *next;
+ xaUBYTE volume_boost;
} XA_SND;
#define XA_SND_CHUNK_SIZE 65536