wine-staging/patches/xactengine-initial/0015-include-Add-XACT-defines.patch
2020-03-01 15:05:53 +11:00

68 lines
3.7 KiB
Diff

From ccb258005d6e7c6be189ef19c7919caea0502336 Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Date: Sat, 18 Jan 2020 18:45:24 +1100
Subject: [PATCH] include: Add XACT defines
---
include/xact3.idl | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/include/xact3.idl b/include/xact3.idl
index 87fd2e86f5..c193ecf831 100644
--- a/include/xact3.idl
+++ b/include/xact3.idl
@@ -21,6 +21,9 @@ import "xaudio2.idl";
import "xact3wb.h";
+cpp_quote("#include <limits.h>")
+cpp_quote("#include <float.h>")
+
[
uuid(bcc782bc-6492-4c22-8c35-f5d72fe73c6e)
]
@@ -285,6 +288,40 @@ cpp_quote("static const XACTNOTIFICATIONTYPE XACTNOTIFICATIONTYPE_WAVEDESTROYED
cpp_quote("static const XACTNOTIFICATIONTYPE XACTNOTIFICATIONTYPE_WAVEBANKPREPARED = 17;")
cpp_quote("static const XACTNOTIFICATIONTYPE XACTNOTIFICATIONTYPE_WAVEBANKSTREAMING_INVALIDCONTENT = 18;")
+cpp_quote("static const XACTTIME XACTTIME_MIN = INT_MIN;")
+cpp_quote("static const XACTTIME XACTTIME_MAX = INT_MAX;")
+cpp_quote("static const XACTTIME XACTTIME_INFINITE = INT_MAX;")
+cpp_quote("static const XACTINSTANCELIMIT XACTINSTANCELIMIT_INFINITE = 0xff;")
+cpp_quote("static const XACTINSTANCELIMIT XACTINSTANCELIMIT_MIN = 0x00;")
+cpp_quote("static const XACTINSTANCELIMIT XACTINSTANCELIMIT_MAX = 0xfe;")
+cpp_quote("static const XACTINDEX XACTINDEX_MIN = 0x00;")
+cpp_quote("static const XACTINDEX XACTINDEX_MAX = 0xfffe;")
+cpp_quote("static const XACTINDEX XACTINDEX_INVALID = 0xffff;")
+cpp_quote("static const XACTNOTIFICATIONTYPE XACTNOTIFICATIONTYPE_MIN = 0x00;")
+cpp_quote("static const XACTNOTIFICATIONTYPE XACTNOTIFICATIONTYPE_MAX = 0xff;")
+cpp_quote("static const XACTVARIABLEVALUE XACTVARIABLEVALUE_MIN = -FLT_MAX;")
+cpp_quote("static const XACTVARIABLEVALUE XACTVARIABLEVALUE_MAX = FLT_MAX;")
+cpp_quote("static const XACTVARIABLEINDEX XACTVARIABLEINDEX_MIN = 0x0000;")
+cpp_quote("static const XACTVARIABLEINDEX XACTVARIABLEINDEX_MAX = 0xfffe;")
+cpp_quote("static const XACTVARIABLEINDEX XACTVARIABLEINDEX_INVALID = 0xffff;")
+cpp_quote("static const XACTCATEGORY XACTCATEGORY_MIN = 0x0;")
+cpp_quote("static const XACTCATEGORY XACTCATEGORY_MAX = 0xfffe;")
+cpp_quote("static const XACTCATEGORY XACTCATEGORY_INVALID = 0xffff;")
+cpp_quote("static const XACTCHANNEL XACTCHANNEL_MIN = 0;")
+cpp_quote("static const XACTCHANNEL XACTCHANNEL_MAX = 0xff;")
+cpp_quote("static const XACTPITCH XACTPITCH_MIN = -1200;")
+cpp_quote("static const XACTPITCH XACTPITCH_MAX = 1200;")
+cpp_quote("static const XACTPITCH XACTPITCH_MIN_TOTAL = -2400;")
+cpp_quote("static const XACTPITCH XACTPITCH_MAX_TOTAL = 2400;")
+cpp_quote("static const XACTVOLUME XACTVOLUME_MIN = 0.0f;")
+cpp_quote("static const XACTVOLUME XACTVOLUME_MAX = 16777216.0f;")
+cpp_quote("static const XACTVARIABLEVALUE XACTPARAMETERVALUE_MIN = -FLT_MAX;")
+cpp_quote("static const XACTVARIABLEVALUE XACTPARAMETERVALUE_MAX = FLT_MAX;")
+cpp_quote("static const XACTLOOPCOUNT XACTLOOPCOUNT_MIN = 0x00;")
+cpp_quote("static const XACTLOOPCOUNT XACTLOOPCOUNT_MAX = 0xfe;")
+cpp_quote("static const XACTLOOPCOUNT XACTLOOPCOUNT_INFINITE = 0xff;")
+cpp_quote("static const DWORD XACTWAVEALIGNMENT_MIN = 2048;")
+
[
object,
local,
--
2.25.1