UniversalSP.h
2.79 KB
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
/*
UniversalSP.h
This file helps manage an application's use of both the sequence player
and the compact sequence player which are the two built-in sequence data
players in the audio library. By enabling and disabling the definition
of COMP_SEQ_PLAY you can control which set of sequence player routines
get called through a single, "universal" set of routines (macros).
Note that there is no equivalent call to alSeqpLoop for the compact sequence player.
*/
#ifndef __UniversalSP__
#define __UniversalSP__
#if 1
#define COMP_SEQ_PLAY
#endif
#ifdef COMP_SEQ_PLAY
#define ALUSPlayer ALCSPlayer
#define ALUSeq ALCSeq
#define ALUSMarker ALCSeqMarker
#define alUSPNew alCSPNew
#define alUSPDelete alCSPDelete
#define alUSPSetSeq alCSPSetSeq
#define alUSPGetSeq alCSPGetSeq
#define alUSPSetBank alCSPSetBank
#define alUSPPlay alCSPPlay
#define alUSPStop alCSPStop
#define alUSPGetState alCSPGetState
#define alUSPSetTempo alCSPSetTempo
#define alUSPGetTempo alCSPGetTempo
#define alUSPSetVol alCSPSetVol
#define alUSPGetVol alCSPGetVol
#define alUSPSetChlVol alCSPSetChlVol
#define alUSPGetChlVol alCSPGetChlVol
#define alUSPSetChlPan alCSPSetChlPan
#define alUSPGetChlPan alCSPGetChlPan
#define alUSPSetChlProgram alCSPSetChlProgram
#define alUSPGetChlProgram alCSPGetChlProgram
#define alUSPSetChlPriority alCSPSetChlPriority
#define alUSPGetChlPriority alCSPGetChlPriority
#define alUSPSetChlFXMix alCSPSetChlFXMix
#define alUSPGetChlFXMix alCSPGetChlFXMix
#define alUSPSendMidi alCSPSendMidi
#define alUSNew(a,b,c) alCSeqNew(a,b)
#define alUSNewMarker alCSeqNewMarker
#define alUSSetLoc alCSeqSetLoc
#define alUSGetTicks alCSeqGetTicks
#else
#define ALUSPlayer ALSeqPlayer
#define ALUSeq ALSeq
#define ALUSMarker ALSeqMarker
#define alUSPNew alSeqpNew
#define alUSPDelete alSeqpDelete
#define alUSPSetSeq alSeqpSetSeq
#define alUSPGetSeq alSeqpGetSeq
#define alUSPSetBank alSeqpSetBank
#define alUSPPlay alSeqpPlay
#define alUSPStop alSeqpStop
#define alUSPGetState alSeqpGetState
#define alUSPSetTempo alSeqpSetTempo
#define alUSPGetTempo alSeqpGetTempo
#define alUSPSetVol alSeqpSetVol
#define alUSPGetVol alSeqpGetVol
#define alUSPSetChlVol alSeqpSetChlVol
#define alUSPGetChlVol alSeqpGetChlVol
#define alUSPSetChlPan alSeqpSetChlPan
#define alUSPGetChlPan alSeqpGetChlPan
#define alUSPSetChlProgram alSeqpSetChlProgram
#define alUSPGetChlProgram alSeqpGetChlProgram
#define alUSPSetChlPriority alSeqpSetChlPriority
#define alUSPGetChlPriority alSeqpGetChlPriority
#define alUSPSetChlFXMix alSeqpSetChlFXMix
#define alUSPGetChlFXMix alSeqpGetChlFXMix
#define alUSPSendMidi alSeqpSendMidi
#define alUSNew alSeqNew
#define alUSNewMarker alSeqNewMarker
#define alUSSetLoc alSeqSetLoc
#define alUSGetTicks alSeqGetTicks
#endif
#endif /* __UniversalSP__ */