From a5bfc1e30b333d0767138d9a42033cabd2dd71c5 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 12 Jan 2014 12:27:46 -0800 Subject: Add a method to get the current MIDI state --- Alc/midi/base.c | 1 + Alc/midi/base.h | 1 + 2 files changed, 2 insertions(+) (limited to 'Alc') diff --git a/Alc/midi/base.c b/Alc/midi/base.c index 0a88c909..cfeda001 100644 --- a/Alc/midi/base.c +++ b/Alc/midi/base.c @@ -189,6 +189,7 @@ ALenum MidiSynth_selectSoundfonts(MidiSynth *self, ALCcontext *context, ALsizei extern inline void MidiSynth_setGain(MidiSynth *self, ALfloat gain); extern inline ALfloat MidiSynth_getGain(const MidiSynth *self); extern inline void MidiSynth_setState(MidiSynth *self, ALenum state); +extern inline ALenum MidiSynth_getState(const MidiSynth *self); void MidiSynth_stop(MidiSynth *self) { diff --git a/Alc/midi/base.h b/Alc/midi/base.h index ec2627cc..f900c941 100644 --- a/Alc/midi/base.h +++ b/Alc/midi/base.h @@ -56,6 +56,7 @@ ALenum MidiSynth_selectSoundfonts(MidiSynth *self, ALCcontext *context, ALsizei inline void MidiSynth_setGain(MidiSynth *self, ALfloat gain) { self->Gain = gain; } inline ALfloat MidiSynth_getGain(const MidiSynth *self) { return self->Gain; } inline void MidiSynth_setState(MidiSynth *self, ALenum state) { ExchangeInt(&self->State, state); } +inline ALenum MidiSynth_getState(const MidiSynth *self) { return self->State; } void MidiSynth_stop(MidiSynth *self); inline void MidiSynth_reset(MidiSynth *self) { MidiSynth_stop(self); } ALuint64 MidiSynth_getTime(const MidiSynth *self); -- cgit v1.2.3