Update COPYING to the latest https://www.gnu.org/licenses/old-licenses/lgpl-2.0.txt...
[openal-soft.git] / Alc / evtqueue.h
blob95702d793a6213d06af013204e5d930953a825b6
1 #ifndef AL_EVTQUEUE_H
2 #define AL_EVTQUEUE_H
4 #include "AL/al.h"
6 #include "alMain.h"
8 typedef struct MidiEvent {
9 ALuint64 time;
10 ALuint event;
11 union {
12 ALuint val[2];
13 struct {
14 ALvoid *data;
15 ALsizei size;
16 } sysex;
17 } param;
18 } MidiEvent;
20 typedef struct EvtQueue {
21 MidiEvent *events;
22 ALsizei pos;
23 ALsizei size;
24 ALsizei maxsize;
25 } EvtQueue;
27 void InitEvtQueue(EvtQueue *queue);
28 void ResetEvtQueue(EvtQueue *queue);
29 ALenum InsertEvtQueue(EvtQueue *queue, const MidiEvent *evt);
31 #endif /* AL_EVTQUEUE_H */