-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDXsound.h
112 lines (98 loc) · 3.03 KB
/
DXsound.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#pragma once
#ifndef DXSOUND_H
#define DXSOUND_H
#include "export.h"
#include "non_win32.h"
#include "my_dx.h"
#ifndef _WIN32
/*
//@FIXME
typedef void* _DDPIXELFORMAT;
//@FIXME
typedef void* IDirectDrawSurface7;
//@FIXME
typedef void* IDirectInputA;
//@FIXME
typedef void* DIDEVICEINSTANCEA;
*/
#endif
struct SDXPolyField
{
float field_0;
float field_4;
float field_8;
float field_C;
u32 field_10;
float field_14;
float field_18;
};
struct DXPOLY
{
DXPOLY* pNext;
LPDIRECTDRAWSURFACE7 field_4;
u16 mBlendMode;
u16 field_A;
DWORD field_C;
SDXPolyField field_10[4];
u8 padBottom[0x6D];
};
EXPORT u8 DXINPUT_GetControllerButtonState(u8);
EXPORT u8 DXINPUT_GetKeyState(u8);
EXPORT u8 DXINPUT_GetMouseButtonState(u8);
EXPORT i32 DXINPUT_GetNumControllerButtons(void);
EXPORT void DXINPUT_Initialize(LPDIRECTINPUT8,HWND);
EXPORT i32 DXINPUT_PollController(i32 *,i32 *,i32 *);
EXPORT i32 DXINPUT_PollKeyboard(void);
EXPORT i32 DXINPUT_PollMouse(i32 *,i32 *);
EXPORT void DXINPUT_Release(void);
EXPORT void DXINPUT_SetKeyState(u8,u8);
EXPORT void DXINPUT_SetMouseButtonState(u8,u8);
EXPORT i32 DXINPUT_SetupController(void);
EXPORT i32 DXINPUT_SetupForceFeedbackSineEffect(i32,float);
EXPORT i32 DXINPUT_SetupKeyboard(i32,i32);
EXPORT i32 DXINPUT_SetupMouse(i32);
EXPORT i32 DXINPUT_StartForceFeedbackEffect(void);
EXPORT i32 DXINPUT_StopForceFeedbackEffect(void);
EXPORT void DXINPUT_GetKeyName(u8, char*);
EXPORT void DXPOLY_BeginScene(void);
EXPORT void DXPOLY_DrawPoly(DXPOLY*,i32,i32,float);
EXPORT void DXPOLY_EnableTexAlpha(bool);
EXPORT void DXPOLY_EndScene(bool);
EXPORT void DXPOLY_Flip(void);
EXPORT void DXPOLY_Init(u32);
EXPORT void DXPOLY_SaveScreen(void);
EXPORT void DXPOLY_SaveSurfaceAsBMP(char *,void *,i32,i32,i32,_DDPIXELFORMAT *,bool);
EXPORT void DXPOLY_SetBackgroundColor(u32);
EXPORT void DXPOLY_SetBlendMode(u32);
EXPORT void DXPOLY_SetDepthCompare(u32);
EXPORT void DXPOLY_SetDepthWriting(bool);
EXPORT void DXPOLY_SetFilterMode(u32);
EXPORT void DXPOLY_SetHUDOffset(i32);
EXPORT void DXPOLY_SetOutlineColor(u32);
EXPORT void DXPOLY_SetTexture(LPDIRECTDRAWSURFACE7);
EXPORT void DXSOUND_Close(i32);
EXPORT void DXSOUND_CreateDSBuffer(char *,i32);
EXPORT void DXSOUND_Init(void);
EXPORT void DXSOUND_IsPlaying(i32);
EXPORT void DXSOUND_Load(char *);
EXPORT void DXSOUND_Open(i32,i32,i32);
EXPORT void DXSOUND_Play(i32,i32);
EXPORT void DXSOUND_SetPan(i32,i32);
EXPORT void DXSOUND_SetPitch(i32,i32);
EXPORT void DXSOUND_SetVolume(i32,i32);
EXPORT void DXSOUND_ShutDown(void);
EXPORT void DXSOUND_Stop(i32);
EXPORT void DXSOUND_Unload(char *,i32);
EXPORT void EnumControllersCallback(DIDEVICEINSTANCEA const *,void *);
EXPORT void ParseWavHeader(char *,tWAVEFORMATEX **,long *,u8 **);
EXPORT void initialSettings(void);
EXPORT void loadWAV(char *,tWAVEFORMATEX *,long *);
EXPORT void renderScene(void);
EXPORT void stateLog(char const *,...);
EXPORT void gsub_514ED0(void);
EXPORT void DXPOLY_SetAddressUAndV(DWORD, DWORD);
EXPORT extern LPDIRECTINPUT8 g_pDI;
void validate_DXsound(void);
void validate_DXPOLY(void);
void validate_SDXPolyField(void);
#endif