aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/midi/dummy.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/midi/dummy.c')
-rw-r--r--Alc/midi/dummy.c38
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;