diff options
author | Chris Robinson <[email protected]> | 2013-11-27 03:24:35 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-11-27 03:49:26 -0800 |
commit | d315feae404a810177d27f86d8e4b58c1531cd60 (patch) | |
tree | a74ab4950d411f995b3eebc74446d55f546f0db9 /Alc/evtqueue.h | |
parent | 08dfbcfd5c61bc07db428e001a7a9e880d618335 (diff) |
Add a MIDI event queue
In preparation for a MIDI extension.
Diffstat (limited to 'Alc/evtqueue.h')
-rw-r--r-- | Alc/evtqueue.h | 23 |
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 */ |