patch-xanim_h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. $OpenBSD: patch-xanim_h,v 1.2 2015/06/29 23:07:07 ratchov Exp $
  2. --- xanim.h.orig Sun Mar 21 23:36:26 1999
  3. +++ xanim.h Tue Jun 30 00:59:45 2015
  4. @@ -32,10 +32,12 @@
  5. #else
  6. #ifndef __CYGWIN32__
  7. #ifndef __FreeBSD__
  8. +#ifndef __OpenBSD__
  9. #include <malloc.h>
  10. #endif
  11. #endif
  12. #endif
  13. +#endif
  14. #include <unistd.h>
  15. @@ -289,6 +291,7 @@ typedef struct
  16. xaULONG fromfile;
  17. xaULONG bufferit;
  18. double scale;
  19. + double amp_scale;
  20. char *device;
  21. } XA_AUD_FLAGS;
  22. @@ -298,30 +301,41 @@ typedef struct
  23. #ifdef XA_SPARC_AUDIO
  24. #define XA_AUDIO 1
  25. +#define XA_NORMAL_AUDIO_WRITES 1
  26. #endif
  27. #ifdef XA_MMS_AUDIO
  28. #define XA_AUDIO 1
  29. #endif
  30. #ifdef XA_AIX_AUDIO
  31. #define XA_AUDIO 1
  32. +#define XA_NORMAL_AUDIO_WRITES 1
  33. #endif
  34. #ifdef XA_NetBSD_AUDIO
  35. #define XA_AUDIO 1
  36. +#define XA_BSD_AUDIO 1
  37. +#define XA_NORMAL_AUDIO_WRITES 1
  38. #endif
  39. +#ifdef XA_OpenBSD_AUDIO
  40. +#define XA_AUDIO 1
  41. +#define XA_BSD_AUDIO 1
  42. +#endif
  43. #ifdef XA_LINUX_AUDIO
  44. #define XA_AUDIO 1
  45. +#define XA_NORMAL_AUDIO_WRITES 1
  46. #endif
  47. #ifdef XA_SGI_AUDIO
  48. #define XA_AUDIO 1
  49. #endif
  50. #ifdef XA_HPDEV_AUDIO
  51. #define XA_AUDIO 1
  52. +#define XA_NORMAL_AUDIO_WRITES 1
  53. #endif
  54. #ifdef XA_HP_AUDIO
  55. #define XA_AUDIO 1
  56. #endif
  57. #ifdef XA_EWS_AUDIO
  58. #define XA_AUDIO 1
  59. +#define XA_NORMAL_AUDIO_WRITES 1
  60. #endif
  61. #ifdef XA_SONY_AUDIO
  62. #define XA_AUDIO 1
  63. @@ -334,6 +348,7 @@ typedef struct
  64. #endif
  65. #ifdef XA_TOWNS_AUDIO
  66. #define XA_AUDIO 1
  67. +#define XA_NORMAL_AUDIO_WRITES 1
  68. #endif
  69. #ifdef XA_TOWNS8_AUDIO
  70. #define XA_AUDIO 1
  71. @@ -433,6 +448,7 @@ typedef struct XA_SND_STRUCT
  72. xaUBYTE *snd; /* sound if present */
  73. struct XA_SND_STRUCT *prev;
  74. struct XA_SND_STRUCT *next;
  75. + xaUBYTE volume_boost;
  76. } XA_SND;
  77. #define XA_SND_CHUNK_SIZE 65536