-
Notifications
You must be signed in to change notification settings - Fork 0
/
fmod_output.js
72 lines (69 loc) · 3.07 KB
/
fmod_output.js
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
const {
e,
Struct,
Func
} = require('./api');
e.FMOD_OUTPUT_PLUGIN_VERSION = 5;
e.FMOD_OUTPUT_METHOD_MIX_DIRECT = 0;
e.FMOD_OUTPUT_METHOD_MIX_BUFFERED = 1;
e.FMOD_OUTPUT_GETNUMDRIVERS_CALLBACK = Func('int', ['void*', 'int*']);
e.FMOD_OUTPUT_GETDRIVERINFO_CALLBACK = Func('int', ['void*', 'int', 'string', 'int', 'int*', 'int*']);
e.FMOD_OUTPUT_INIT_CALLBACK = Func('int', ['void*', 'int', 'Uint', 'int*', 'int*', 'int*', 'int*', 'int', 'int*', 'int*', 'void*']);
e.FMOD_OUTPUT_START_CALLBACK = Func('int', ['void*']);
e.FMOD_OUTPUT_STOP_CALLBACK = Func('int', ['void*']);
e.FMOD_OUTPUT_CLOSE_CALLBACK = Func('int', ['void*']);
e.FMOD_OUTPUT_UPDATE_CALLBACK = Func('int', ['void*']);
e.FMOD_OUTPUT_GETHANDLE_CALLBACK = Func('int', ['void*', 'void**']);
e.FMOD_OUTPUT_MIXER_CALLBACK = Func('int', ['void*']);
e.FMOD_OUTPUT_OBJECT3DGETINFO_CALLBACK = Func('int', ['void*', 'int*']);
e.FMOD_OUTPUT_OBJECT3DALLOC_CALLBACK = Func('int', ['void*', 'void**']);
e.FMOD_OUTPUT_OBJECT3DFREE_CALLBACK = Func('int', ['void*', 'void*']);
e.FMOD_OUTPUT_OBJECT3DUPDATE_CALLBACK = Func('int', ['void*', 'void*', 'void*']);
e.FMOD_OUTPUT_OPENPORT_CALLBACK = Func('int', ['void*', 'int', 'Ulong', 'int*', 'int*', 'int*', 'int*']);
e.FMOD_OUTPUT_CLOSEPORT_CALLBACK = Func('int', ['void*', 'int']);
e.FMOD_OUTPUT_DEVICELISTCHANGED_CALLBACK = Func('int', ['void*']);
e.FMOD_OUTPUT_READFROMMIXER_FUNC = Func('int', ['void*', 'void*', 'Uint*']);
e.FMOD_OUTPUT_COPYPORT_FUNC = Func('int', ['void*', 'int', 'void*', 'Uint']);
e.FMOD_OUTPUT_REQUESTRESET_FUNC = Func('int', ['void*']);
e.FMOD_OUTPUT_ALLOC_FUNC = Func('void*', ['Uint', 'Uint', 'string', 'int']);
e.FMOD_OUTPUT_FREE_FUNC = Func('void', ['void*', 'string', 'int']);
e.FMOD_OUTPUT_LOG_FUNC = Func('void', ['Uint', 'string', 'int', 'string', 'string']);
e.FMOD_OUTPUT_DESCRIPTION = Struct({
apiversion: 'Uint',
name: 'string',
version: 'Uint',
method: 'Uint',
getnumdrivers: e.FMOD_OUTPUT_GETNUMDRIVERS_CALLBACK,
getdriverinfo: e.FMOD_OUTPUT_GETDRIVERINFO_CALLBACK,
init: e.FMOD_OUTPUT_INIT_CALLBACK,
start: e.FMOD_OUTPUT_START_CALLBACK,
stop: e.FMOD_OUTPUT_STOP_CALLBACK,
close: e.FMOD_OUTPUT_CLOSE_CALLBACK,
update: e.FMOD_OUTPUT_UPDATE_CALLBACK,
gethandle: e.FMOD_OUTPUT_GETHANDLE_CALLBACK,
mixer: e.FMOD_OUTPUT_MIXER_CALLBACK,
object3dgetinfo: e.FMOD_OUTPUT_OBJECT3DGETINFO_CALLBACK,
object3dalloc: e.FMOD_OUTPUT_OBJECT3DALLOC_CALLBACK,
object3dfree: e.FMOD_OUTPUT_OBJECT3DFREE_CALLBACK,
object3dupdate: e.FMOD_OUTPUT_OBJECT3DUPDATE_CALLBACK,
openport: e.FMOD_OUTPUT_OPENPORT_CALLBACK,
closeport: e.FMOD_OUTPUT_CLOSEPORT_CALLBACK,
devicelistchanged: e.FMOD_OUTPUT_DEVICELISTCHANGED_CALLBACK
});
e.FMOD_OUTPUT_STATE = Struct({
plugindata: 'void*',
readfrommixer: e.FMOD_OUTPUT_READFROMMIXER_FUNC,
alloc: e.FMOD_OUTPUT_ALLOC_FUNC,
free: e.FMOD_OUTPUT_FREE_FUNC,
log: e.FMOD_OUTPUT_LOG_FUNC,
copyport: e.FMOD_OUTPUT_COPYPORT_FUNC,
requestreset: e.FMOD_OUTPUT_REQUESTRESET_FUNC
});
e.FMOD_OUTPUT_OBJECT3DINFO = Struct({
buffer: 'float',
bufferlength: 'Uint',
position: e.FMOD_VECTOR,
gain: 'float',
spread: 'float',
priority: 'float'
});