summaryrefslogtreecommitdiffstats
path: root/Alc/midi
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/midi')
-rw-r--r--Alc/midi/base.c12
-rw-r--r--Alc/midi/base.h1
2 files changed, 0 insertions, 13 deletions
diff --git a/Alc/midi/base.c b/Alc/midi/base.c
index e459b952..f6a9b5c7 100644
--- a/Alc/midi/base.c
+++ b/Alc/midi/base.c
@@ -151,18 +151,6 @@ void MidiSynth_Destruct(MidiSynth *self)
ResetEvtQueue(&self->EventQueue);
}
-const char *MidiSynth_getFontName(const MidiSynth* UNUSED(self), const char *filename)
-{
- if(!filename || !filename[0])
- filename = getenv("ALSOFT_SOUNDFONT");
- if(!filename || !filename[0])
- filename = GetConfigValue("midi", "soundfont", "");
- if(!filename[0])
- WARN("No default soundfont found\n");
-
- return filename;
-}
-
ALenum MidiSynth_selectSoundfonts(MidiSynth *self, ALCdevice *device, ALsizei count, const ALuint *ids)
{
ALsoundfont **sfonts;
diff --git a/Alc/midi/base.h b/Alc/midi/base.h
index 7dc80395..e9245887 100644
--- a/Alc/midi/base.h
+++ b/Alc/midi/base.h
@@ -52,7 +52,6 @@ typedef struct MidiSynth {
void MidiSynth_Construct(MidiSynth *self, ALCdevice *device);
void MidiSynth_Destruct(MidiSynth *self);
-const char *MidiSynth_getFontName(const MidiSynth *self, const char *filename);
ALenum MidiSynth_selectSoundfonts(MidiSynth *self, ALCdevice *device, 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; }