aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/evtqueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/evtqueue.h')
-rw-r--r--Alc/evtqueue.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/Alc/evtqueue.h b/Alc/evtqueue.h
new file mode 100644
index 00000000..9208df6e
--- /dev/null
+++ b/Alc/evtqueue.h
@@ -0,0 +1,23 @@
+#ifndef AL_EVTQUEUE_H
+#define AL_EVTQUEUE_H
+
+#include "AL/al.h"
+
+typedef struct MidiEvent {
+ ALuint time;
+ ALuint event;
+ ALuint param[2];
+} MidiEvent;
+
+typedef struct EvtQueue {
+ MidiEvent *events;
+ ALsizei pos;
+ ALsizei size;
+ ALsizei maxsize;
+} EvtQueue;
+
+void InitEvtQueue(EvtQueue *queue);
+void ResetEvtQueue(EvtQueue *queue);
+ALenum InsertEvtQueue(EvtQueue *queue, const MidiEvent *evt);
+
+#endif /* AL_EXTQUEUE_H */