AuroraOpenALSoft/Alc/evtqueue.h

32 lines
579 B
C
Raw Normal View History

#ifndef AL_EVTQUEUE_H
#define AL_EVTQUEUE_H
#include "AL/al.h"
2013-11-27 12:33:33 +00:00
#include "alMain.h"
typedef struct MidiEvent {
2013-11-27 12:33:33 +00:00
ALuint64 time;
ALuint event;
union {
ALuint val[2];
struct {
ALvoid *data;
ALsizei size;
} sysex;
} param;
} 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);
2013-11-27 12:33:33 +00:00
#endif /* AL_EVTQUEUE_H */