From e7be2435c2a55cbb32ae105d3a44dad02497ddd5 Mon Sep 17 00:00:00 2001 From: RadWolfie Date: Wed, 26 Aug 2020 01:01:23 -0500 Subject: [PATCH] xbox: add missing xbox types for dsound --- src/common/xbox_types.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/common/xbox_types.h b/src/common/xbox_types.h index edcec2192..bf38b74bd 100644 --- a/src/common/xbox_types.h +++ b/src/common/xbox_types.h @@ -70,6 +70,10 @@ namespace xbox typedef unsigned __int64 QUAD; // 8 byte aligned 8 byte long typedef int BOOL; typedef LONG HRESULT; + typedef float FLOAT; + // TODO: Remove __stdcall once lib86cpu is implemented. + #define XBOXAPI __stdcall + #define XCALLBACK XBOXAPI // ****************************************************************** @@ -107,4 +111,21 @@ namespace xbox typedef WCHAR *LPWSTR, *PWSTR; typedef /*_Null_terminated_*/ const WCHAR *LPCWSTR, *PCWSTR; + + // ****************************************************************** + // Misc + // ****************************************************************** + typedef struct _XD3DVECTOR { + FLOAT x; + FLOAT y; + FLOAT z; + } D3DVECTOR; + + template + inline void CopyD3DVector(A& a, const B& b) + { + a.x = b.x; + a.y = b.y; + a.z = b.z; + } }