aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/midi/base.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-01-03 22:58:51 -0800
committerChris Robinson <[email protected]>2014-01-03 22:58:51 -0800
commit13066bbf87c871d848df22c660b17db435561618 (patch)
tree464a6fec9314aad12800edd8e297024a09f4cb7d /Alc/midi/base.h
parent42a67731c411775fe9de5d3a05edfd10205cc70f (diff)
Allow selecting the default soundfont using ID 0
Diffstat (limited to 'Alc/midi/base.h')
-rw-r--r--Alc/midi/base.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Alc/midi/base.h b/Alc/midi/base.h
index e9245887..72e83b7d 100644
--- a/Alc/midi/base.h
+++ b/Alc/midi/base.h
@@ -52,7 +52,8 @@ typedef struct MidiSynth {
void MidiSynth_Construct(MidiSynth *self, ALCdevice *device);
void MidiSynth_Destruct(MidiSynth *self);
-ALenum MidiSynth_selectSoundfonts(MidiSynth *self, ALCdevice *device, ALsizei count, const ALuint *ids);
+struct ALsoundfont *MidiSynth_getDefSoundfont(ALCcontext *context);
+ALenum MidiSynth_selectSoundfonts(MidiSynth *self, ALCcontext *context, ALsizei count, const ALuint *ids);
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); }
@@ -75,7 +76,7 @@ ALenum MidiSynth_insertSysExEvent(MidiSynth *self, ALuint64 time, const ALbyte *
struct MidiSynthVtable {
void (*const Destruct)(MidiSynth *self);
- ALenum (*const selectSoundfonts)(MidiSynth *self, ALCdevice *device, ALsizei count, const ALuint *ids);
+ ALenum (*const selectSoundfonts)(MidiSynth *self, ALCcontext *context, ALsizei count, const ALuint *ids);
void (*const setGain)(MidiSynth *self, ALfloat gain);
void (*const setState)(MidiSynth *self, ALenum state);
@@ -91,7 +92,7 @@ struct MidiSynthVtable {
#define DEFINE_MIDISYNTH_VTABLE(T) \
DECLARE_THUNK(T, MidiSynth, void, Destruct) \
-DECLARE_THUNK3(T, MidiSynth, ALenum, selectSoundfonts, ALCdevice*, ALsizei, const ALuint*) \
+DECLARE_THUNK3(T, MidiSynth, ALenum, selectSoundfonts, ALCcontext*, ALsizei, const ALuint*) \
DECLARE_THUNK1(T, MidiSynth, void, setGain, ALfloat) \
DECLARE_THUNK1(T, MidiSynth, void, setState, ALenum) \
DECLARE_THUNK(T, MidiSynth, void, stop) \