AUDIO: Fix unused functions with older FluidSynth versions

This commit is contained in:
Cameron Cawley 2020-08-01 20:30:10 +01:00
parent e95f86f9e2
commit 65164e00d4

View File

@ -126,6 +126,7 @@ void MidiDriver_FluidSynth::setStr(const char *name, const char *val) {
// Soundfont memory loader callback functions.
#if defined(FLUIDSYNTH_VERSION_MAJOR) && FLUIDSYNTH_VERSION_MAJOR > 1
static void *SoundFontMemLoader_open(const char *filename) {
void *p;
if (filename[0] != '&') {
@ -151,6 +152,7 @@ static int SoundFontMemLoader_close(void *handle) {
static long SoundFontMemLoader_tell(void *handle) {
return ((Common::SeekableReadStream *) handle)->pos();
}
#endif
int MidiDriver_FluidSynth::open() {
if (_isOpen)