diff options
author | Chris Robinson <[email protected]> | 2013-12-29 06:02:48 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-12-29 06:02:48 -0800 |
commit | 6b2d3c3cfa06485171bd813ce190c0b0ed87410c (patch) | |
tree | dd599abca17c9a38557892c61ffccc1c52b81cf5 /Alc/midi/dummy.c | |
parent | 396a2f1595b5296af9f23e115fa02090c0f43353 (diff) |
Remove some unused MIDI backend methods
Diffstat (limited to 'Alc/midi/dummy.c')
-rw-r--r-- | Alc/midi/dummy.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/Alc/midi/dummy.c b/Alc/midi/dummy.c index 3b72b63f..760aed74 100644 --- a/Alc/midi/dummy.c +++ b/Alc/midi/dummy.c @@ -20,8 +20,6 @@ typedef struct DSynth { static void DSynth_Construct(DSynth *self, ALCdevice *device); static DECLARE_FORWARD(DSynth, MidiSynth, void, Destruct) -static ALboolean DSynth_isSoundfont(DSynth *self, const char *filename); -static ALenum DSynth_loadSoundfont(DSynth *self, const char *filename); static DECLARE_FORWARD3(DSynth, MidiSynth, ALenum, selectSoundfonts, ALCdevice*, ALsizei, const ALuint*) static DECLARE_FORWARD1(DSynth, MidiSynth, void, setGain, ALfloat) static DECLARE_FORWARD1(DSynth, MidiSynth, void, setState, ALenum) @@ -40,42 +38,6 @@ static void DSynth_Construct(DSynth *self, ALCdevice *device) } -static ALboolean DSynth_isSoundfont(DSynth *self, const char *filename) -{ - char buf[12]; - FILE *f; - - filename = MidiSynth_getFontName(STATIC_CAST(MidiSynth, self), filename); - if(!filename[0]) - return AL_FALSE; - - f = fopen(filename, "rb"); - if(!f) return AL_FALSE; - - if(fread(buf, 1, sizeof(buf), f) != sizeof(buf)) - { - fclose(f); - return AL_FALSE; - } - - if(memcmp(buf, "RIFF", 4) != 0 || memcmp(buf+8, "sfbk", 4) != 0) - { - fclose(f); - return AL_FALSE; - } - - fclose(f); - return AL_TRUE; -} - -static ALenum DSynth_loadSoundfont(DSynth *self, const char *filename) -{ - if(!DSynth_isSoundfont(self, filename)) - return AL_INVALID_VALUE; - return AL_NO_ERROR; -} - - static void DSynth_processQueue(DSynth *self, ALuint64 time) { EvtQueue *queue = &STATIC_CAST(MidiSynth, self)->EventQueue; |