annotate AIL.cpp @ 1:ac0fb48cd27a

Texture, hwl loading, video player
author Nomad
date Tue, 09 Oct 2012 13:09:08 +0200
parents 8b8875f5b359
children 540178ef9b18
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #include "AIL.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6 int (__stdcall *mss32_AIL_startup)() = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 HREDBOOK (__stdcall *mss32_AIL_redbook_open_drive)(long) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 int (__stdcall *mss32_AIL_set_preference)(unsigned int, int) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 int (__stdcall *mss32_AIL_waveOutOpen)(HDIGDRIVER *, HWAVEOUT *, int, WAVEFORMAT *) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 int (__stdcall *mss32_AIL_get_preference)(unsigned int) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 int (__stdcall *mss32_AIL_digital_configuration)(HDIGDRIVER, int *, int *, char *) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 HSAMPLE (__stdcall *mss32_AIL_allocate_sample_handle)(HDIGDRIVER) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 unsigned int (__stdcall *mss32_AIL_redbook_tracks)(HREDBOOK) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 int (__stdcall *mss32_AIL_redbook_volume)(HREDBOOK) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 unsigned int (__stdcall *mss32_AIL_redbook_stop)(HREDBOOK) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 void (__stdcall *mss32_AIL_set_digital_master_volume)(HDIGDRIVER, float) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 int (__stdcall *mss32_AIL_redbook_set_volume)(HREDBOOK, int) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18 unsigned int (__stdcall *mss32_AIL_redbook_pause)(HREDBOOK) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 void (__stdcall *mss32_AIL_redbook_track_info)(HREDBOOK, unsigned int, unsigned int *, unsigned int *) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 unsigned int (__stdcall *mss32_AIL_redbook_play)(HREDBOOK, unsigned int, unsigned int) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 unsigned int (__stdcall *mss32_AIL_redbook_resume)(HREDBOOK) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 AIL::Sample::Status (__stdcall *mss32_AIL_sample_status)(HSAMPLE) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 int (__stdcall *mss32_AIL_sample_volume)(HSAMPLE) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 int (__stdcall *mss32_AIL_enumerate_3D_providers)(int *, HPROVIDER *, char **) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 DWORD (__stdcall *mss32_AIL_open_3D_provider)(HPROVIDER) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 int (__stdcall *mss32_AIL_end_sample)(HSAMPLE) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 int (__stdcall *mss32_AIL_set_sample_volume)(HSAMPLE, long) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 int (__stdcall *mss32_AIL_set_sample_pan)(HSAMPLE, long) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 void (__stdcall *mss32_AIL_end_sequence)(HSEQUENCE) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 void (__stdcall *mss32_AIL_pause_stream)(HSTREAM, int) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 void (__stdcall *mss32_AIL_init_sample)(HSAMPLE) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 int (__stdcall *mss32_AIL_set_sample_file)(HSAMPLE, const void *, int) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 void (__stdcall *mss32_AIL_set_sample_loop_count)(HSAMPLE, int) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 void (__stdcall *mss32_AIL_set_sample_playback_rate)(HSAMPLE, int) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 void (__stdcall *mss32_AIL_sample_ms_position)(HSAMPLE, int *, int *) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 void (__stdcall *mss32_AIL_start_sample)(HSAMPLE) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 AILFILETYPE (__stdcall *mss32_AIL_file_type)(void *, int) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 int (__stdcall *mss32_AIL_WAV_info)(void *, AILSOUNDINFO *) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 int (__stdcall *mss32_AIL_decompress_ADPCM)(AILSOUNDINFO *, void *, void *) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 void MSS32_DLL_Initialize()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 HMODULE pDll = LoadLibraryW(L"mss32.dll");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 mss32_AIL_startup = (int (__stdcall *)())GetProcAddress(pDll, "_AIL_startup@0");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 mss32_AIL_redbook_open_drive = (HREDBOOK (__stdcall *)(long))GetProcAddress(pDll, "_AIL_redbook_open_drive@4");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46 mss32_AIL_set_preference = (int (__stdcall *)(unsigned int, int))GetProcAddress(pDll, "_AIL_set_preference@8");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 mss32_AIL_waveOutOpen = (int (__stdcall *)(HDIGDRIVER *, HWAVEOUT *, int, WAVEFORMAT *))GetProcAddress(pDll, "_AIL_waveOutOpen@16");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48 mss32_AIL_get_preference = (int (__stdcall *)(unsigned int))GetProcAddress(pDll, "_AIL_get_preference@4");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49 mss32_AIL_digital_configuration = (int (__stdcall *)(HDIGDRIVER, int *, int *, char *))GetProcAddress(pDll, "_AIL_digital_configuration@16");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50 mss32_AIL_allocate_sample_handle = (HSAMPLE (__stdcall *)(HDIGDRIVER))GetProcAddress(pDll, "_AIL_allocate_sample_handle@4");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51 mss32_AIL_redbook_tracks = (unsigned int (__stdcall *)(HREDBOOK))GetProcAddress(pDll, "_AIL_redbook_tracks@4");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 mss32_AIL_redbook_volume = (int (__stdcall *)(HREDBOOK))GetProcAddress(pDll, "_AIL_redbook_volume@4");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 mss32_AIL_redbook_stop = (unsigned int (__stdcall *)(HREDBOOK))GetProcAddress(pDll, "_AIL_redbook_stop@4");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 mss32_AIL_set_digital_master_volume = (void (__stdcall *)(HDIGDRIVER, float))GetProcAddress(pDll, "_AIL_set_digital_master_volume@8");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 mss32_AIL_redbook_set_volume = (int (__stdcall *)(HREDBOOK, int))GetProcAddress(pDll, "_AIL_redbook_set_volume@8");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 mss32_AIL_redbook_pause = (unsigned int (__stdcall *)(HREDBOOK))GetProcAddress(pDll, "_AIL_redbook_pause@4");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 mss32_AIL_redbook_track_info = (void (__stdcall *)(HREDBOOK, unsigned int, unsigned int *, unsigned int *))GetProcAddress(pDll, "_AIL_redbook_track_info@16");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 mss32_AIL_redbook_play = (unsigned int (__stdcall *)(HREDBOOK, unsigned int, unsigned int))GetProcAddress(pDll, "_AIL_redbook_play@12");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 mss32_AIL_redbook_resume = (unsigned int (__stdcall *)(HREDBOOK))GetProcAddress(pDll, "_AIL_redbook_resume@4");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 mss32_AIL_sample_status = (AIL::Sample::Status (__stdcall *)(HSAMPLE))GetProcAddress(pDll, "_AIL_sample_status@4");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 mss32_AIL_sample_volume = (int (__stdcall *)(HSAMPLE))GetProcAddress(pDll, "_AIL_sample_volume@4");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 mss32_AIL_enumerate_3D_providers = (int (__stdcall *)(int *, HPROVIDER *, char **))GetProcAddress(pDll, "_AIL_enumerate_3D_providers@12");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 mss32_AIL_open_3D_provider = (DWORD (__stdcall *)(HPROVIDER))GetProcAddress(pDll, "_AIL_open_3D_provider@4");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 mss32_AIL_end_sample = (int (__stdcall *)(HSAMPLE))GetProcAddress(pDll, "_AIL_end_sample@4");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65 mss32_AIL_set_sample_volume = (int (__stdcall *)(HSAMPLE, long))GetProcAddress(pDll, "_AIL_set_sample_volume@8");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66 mss32_AIL_set_sample_pan = (int (__stdcall *)(HSAMPLE, long))GetProcAddress(pDll, "_AIL_set_sample_pan@8");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67 mss32_AIL_end_sequence = (void (__stdcall *)(HSEQUENCE))GetProcAddress(pDll, "_AIL_end_sequence@4");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68 mss32_AIL_pause_stream = (void (__stdcall *)(HSTREAM, int))GetProcAddress(pDll, "_AIL_pause_stream@8");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69 mss32_AIL_init_sample = (void (__stdcall *)(HSAMPLE))GetProcAddress(pDll, "_AIL_init_sample@4");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70 mss32_AIL_set_sample_file = (int (__stdcall *)(HSAMPLE, const void *, int))GetProcAddress(pDll, "_AIL_set_sample_file@12");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71 mss32_AIL_set_sample_loop_count = (void (__stdcall *)(HSAMPLE, int))GetProcAddress(pDll, "_AIL_set_sample_loop_count@8");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72 mss32_AIL_set_sample_playback_rate = (void (__stdcall *)(HSAMPLE, int))GetProcAddress(pDll, "_AIL_set_sample_playback_rate@8");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73 mss32_AIL_sample_ms_position = (void (__stdcall *)(HSAMPLE, int *, int *))GetProcAddress(pDll, "_AIL_sample_ms_position@12");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74 mss32_AIL_start_sample = (void (__stdcall *)(HSAMPLE))GetProcAddress(pDll, "_AIL_start_sample@4");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 mss32_AIL_file_type = (AILFILETYPE (__stdcall *)(void *, int))GetProcAddress(pDll, "_AIL_file_type@8");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 mss32_AIL_WAV_info = (int (__stdcall *)(void *, AILSOUNDINFO *))GetProcAddress(pDll, "_AIL_WAV_info@8");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77 mss32_AIL_decompress_ADPCM = (int (__stdcall *)(AILSOUNDINFO *, void *, void *))GetProcAddress(pDll, "_AIL_decompress_ADPCM@12");
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82 unsigned int __stdcall AIL_redbook_play(HREDBOOK hRedbook, unsigned int uStartMS, unsigned int uEndMS)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
83 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 return (mss32_AIL_redbook_play)(hRedbook, uStartMS, uEndMS);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87 void __stdcall AIL_redbook_track_info(HREDBOOK hRedbook, unsigned int uTrackNum, unsigned int *pStartMS, unsigned int *pEndMS)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 (mss32_AIL_redbook_track_info)(hRedbook, uTrackNum, pStartMS, pEndMS);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92 unsigned int __stdcall AIL_redbook_resume(HREDBOOK hRedbook)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94 return (mss32_AIL_redbook_resume)(hRedbook);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97 int __stdcall AIL_enumerate_3D_providers(int *a1, HPROVIDER *pOutProv, char **pOutName)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99 return (mss32_AIL_enumerate_3D_providers)(a1, pOutProv, pOutName);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
104 int __stdcall AIL_sample_volume(HSAMPLE s)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 return (mss32_AIL_sample_volume)(s);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109 AIL::Sample::Status __stdcall AIL_sample_status(HSAMPLE a1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 return (mss32_AIL_sample_status)(a1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
113
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
114 // sub_4D8304: using guessed type int __stdcall AIL_set_digital_master_volume(_DWORD, _DWORD);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
115 void __stdcall AIL_set_digital_master_volume(HDIGDRIVER hDrv, float master_volume)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
116 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
117 (mss32_AIL_set_digital_master_volume)(hDrv, master_volume);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
118 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
119
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
120 // sub_4D8370: using guessed type int __stdcall AIL_allocate_sample_handle(_DWORD);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
121 HSAMPLE __stdcall AIL_allocate_sample_handle(HDIGDRIVER hDrv)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
122 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
123 return (mss32_AIL_allocate_sample_handle)(hDrv);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
124 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
125
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
126 // sub_4D8308: using guessed type int __fastcall AIL_redbook_set_volume(_DWORD, _DWORD, _DWORD, _DWORD);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
127 int __stdcall AIL_redbook_set_volume(HREDBOOK hRedbook, int volume)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
128 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
129 return (mss32_AIL_redbook_set_volume)(hRedbook, volume);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
130 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
131
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
132 // sub_4D8324: using guessed type int __stdcall AIL_redbook_stop(_DWORD);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
133 unsigned int __stdcall AIL_redbook_stop(HREDBOOK hRedbook)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
134 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
135 return (mss32_AIL_redbook_stop)(hRedbook);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
136 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
137
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
138 // sub_4D835C: using guessed type int __stdcall AIL_startup();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
139 int __stdcall AIL_startup()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
140 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
141 return (mss32_AIL_startup)();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
142 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
143
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
144 // sub_4D8360: using guessed type int __stdcall AIL_redbook_open_drive(_DWORD);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
145 HREDBOOK __stdcall AIL_redbook_open_drive(long drive)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
146 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
147 return (mss32_AIL_redbook_open_drive)(drive);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
148 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
149
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
150 // sub_4D834C: using guessed type int __stdcall AIL_waveOutOpen(_DWORD, _DWORD, _DWORD, _DWORD);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
151 int __stdcall AIL_waveOutOpen(HDIGDRIVER *drv, HWAVEOUT *phWaveOut, int wDeviceID, WAVEFORMAT *pFormat)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
152 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
153 return (mss32_AIL_waveOutOpen)(drv, phWaveOut, wDeviceID, pFormat);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
154 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
155
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
156
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
157 DWORD __stdcall AIL_open_3D_provider(HPROVIDER a2)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
158 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
159 return (mss32_AIL_open_3D_provider)(a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
160 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
161
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
162 int __stdcall AIL_3D_provider_attribute(HPROVIDER a1, const char *a2, int *a3)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
163 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
164 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
165 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
166 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
167
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
168 // sub_4D8374: using guessed type int __stdcall AIL_redbook_tracks(_DWORD);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
169 unsigned int __stdcall AIL_redbook_tracks(HREDBOOK hRedbook)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
170 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
171 return (mss32_AIL_redbook_tracks)(hRedbook);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
172 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
173
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
174 // sub_4D83B0: using guessed type int __stdcall AIL_redbook_volume(_DWORD);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
175 int __stdcall AIL_redbook_volume(HREDBOOK hRedbook)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
176 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
177 return (mss32_AIL_redbook_volume)(hRedbook);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
178 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
179
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
180 // sub_4D8348: using guessed type int __stdcall AIL_set_preference(_DWORD, _DWORD);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
181 int __stdcall AIL_set_preference(unsigned int number, int value)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
182 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
183 return (mss32_AIL_set_preference)(number, value);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
184 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
185
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
186 // sub_4D8350: using guessed type int __stdcall AIL_digital_configuration(_DWORD, _DWORD, _DWORD, _DWORD);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
187 int __stdcall AIL_digital_configuration(HDIGDRIVER drv, int *rate, int *format, char *string)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
188 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
189 return (mss32_AIL_digital_configuration)(drv, rate, format, string);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
190 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
191
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
192 // sub_4D8354: using guessed type int __stdcall AIL_get_preference(_DWORD);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
193 int __stdcall AIL_get_preference(unsigned int number)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
194 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
195 return (mss32_AIL_get_preference)(number);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
196 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
197
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
198 int __stdcall AIL_waveOutClose(_DIG_DRIVER *)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
199 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
200 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
201 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
202 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
203
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
204 // sub_4D8320: using guessed type int __stdcall AIL_redbook_pause(_DWORD);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
205 unsigned int __stdcall AIL_redbook_pause(HREDBOOK hRedbook)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
206 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
207 return (mss32_AIL_redbook_pause)(hRedbook);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
208 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
209
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
210 int __stdcall AIL_set_3D_provider_preference(HPROVIDER a1, const char *a2, int *a3)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
211 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
212 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
213 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
214 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
215
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
216 int __stdcall AIL_allocate_3D_sample_handle(HPROVIDER)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
217 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
218 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
219 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
220 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
221
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
222 int __stdcall AIL_set_3D_sample_float_distances(void *a1, long a2, long a3, long a4, long a5)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
223 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
224 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
225 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
226 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
227
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
228 int __stdcall AIL_set_3D_sample_volume(void *a1, long a2)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
229 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
230 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
231 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
232 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
233
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
234 int __stdcall AIL_release_sample_handle(void *a1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
235 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
236 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
237 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
238 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
239
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
240 int __stdcall AIL_release_3D_sample_handle(void *a1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
241 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
242 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
243 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
244 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
245
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
246 int __stdcall AIL_close_3D_provider(HPROVIDER)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
247 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
248 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
249 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
250 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
251
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
252 int __stdcall AIL_redbook_close(HREDBOOK a1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
253 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
254 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
255 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
256 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
257
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
258 // sub_4D8344: using guessed type int __stdcall AIL_shutdown();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
259 int __stdcall AIL_shutdown()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
260 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
261 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
262 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
263 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
264
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
265 int __stdcall AIL_end_sample(HSAMPLE a1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
266 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
267 return (mss32_AIL_end_sample)(a1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
268 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
269
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
270 int __stdcall AIL_end_3D_sample(void *a1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
271 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
272 __debugbreak();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
273 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
274 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
275
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
276
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
277 void __stdcall AIL_end_sequence(HSEQUENCE a1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
278 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
279 (mss32_AIL_end_sequence)(a1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
280 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
281
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
282 void __stdcall AIL_pause_stream(HSTREAM a1, int onoff)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
283 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
284 (mss32_AIL_pause_stream)(a1, onoff);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
285 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
286
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
287 int __stdcall AIL_set_sample_file(HSAMPLE s, const void *file_image, int block)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
288 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
289 return (mss32_AIL_set_sample_file)(s, file_image, block);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
290 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
291
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
292 void __stdcall AIL_start_sample(HSAMPLE s)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
293 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
294 (mss32_AIL_start_sample)(s);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
295 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
296
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
297 void __stdcall AIL_set_sample_playback_rate(HSAMPLE s, int rate)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
298 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
299 (mss32_AIL_set_sample_playback_rate)(s, rate);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
300 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
301
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
302 void __stdcall AIL_sample_ms_position(HSAMPLE s, int *pTotalMS, int *pCurrentMS)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
303 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
304 (mss32_AIL_sample_ms_position)(s, pTotalMS, pCurrentMS);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
305 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
306
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
307 int __stdcall AIL_3D_sample_status(void *a1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
308 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
309 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
310 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
311 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
312
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
313 void __stdcall AIL_set_sample_loop_count(HSAMPLE s, int num)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
314 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
315 (mss32_AIL_set_sample_loop_count)(s, num);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
316 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
317
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
318 int __stdcall AIL_set_sample_volume(HSAMPLE a1, long a2)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
319 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
320 return (mss32_AIL_set_sample_volume)(a1, a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
321 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
322
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
323 int __stdcall AIL_3D_position(void *a1, int *a2, float *a3, long *a4)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
324 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
325 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
326 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
327 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
328
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
329 int __stdcall AIL_set_3D_sample_file(long a1, void *a2)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
330 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
331 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
332 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
333 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
334
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
335 int __stdcall AIL_set_3D_sample_loop_count(long a1, long a2)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
336 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
337 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
338 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
339 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
340
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
341 int __stdcall AIL_start_3D_sample(long a1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
342 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
343 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
344 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
345 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
346
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
347 int __stdcall AIL_set_3D_position(void *hSample, long a2, long a3, long a4)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
348 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
349 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
350 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
351 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
352
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
353 int __stdcall AIL_set_3D_orientation(void *hSample, long a2, long a3, long a4, long a5, long a6, long a7)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
354 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
355 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
356 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
357 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
358
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
359 void __stdcall AIL_init_sample(HSAMPLE a1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
360 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
361 (mss32_AIL_init_sample)(a1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
362 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
363
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
364 int __stdcall AIL_set_sample_pan(HSAMPLE a1, long a2)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
365 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
366 return (mss32_AIL_set_sample_pan)(a1, a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
367 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
368
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
369
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
370 AILFILETYPE __stdcall AIL_file_type(void *pSoundBytes, int numBytes)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
371 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
372 return (mss32_AIL_file_type)(pSoundBytes, numBytes);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
373 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
374
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
375 int __stdcall AIL_WAV_info(void *pSoundBytes, AILSOUNDINFO *pInfo)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
376 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
377 return (mss32_AIL_WAV_info)(pSoundBytes, pInfo);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
378 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
379
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
380 int __stdcall AIL_decompress_ADPCM(AILSOUNDINFO *pInfo, void *a2, void *a3)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
381 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
382 return (mss32_AIL_decompress_ADPCM)(pInfo, a2, a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
383 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
384
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
385 int __stdcall AIL_mem_free_lock(void *a1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
386 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
387 __asm int 3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
388 return 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
389 }