aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/midi/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/midi/base.h')
-rw-r--r--Alc/midi/base.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Alc/midi/base.h b/Alc/midi/base.h
index d038eebc..a5b76dfe 100644
--- a/Alc/midi/base.h
+++ b/Alc/midi/base.h
@@ -9,6 +9,18 @@
extern "C" {
#endif
+typedef size_t (*ReaderCb)(void *ptr, size_t size, void *stream);
+typedef struct Reader {
+ ReaderCb cb;
+ void *ptr;
+ int error;
+} Reader;
+#define READ(x_, buf_, len_) ((x_)->cb((buf_), (len_), (x_)->ptr))
+#define READERR(x_) ((x_)->error)
+
+ALboolean loadSf2(Reader *stream, ALuint sfid);
+
+
struct MidiSynthVtable;
typedef struct MidiSynth {