AUDIO: FluidSynth Don't accept soundfont data if using version 1.x

This commit is contained in:
Eric Fry 2020-08-19 23:51:04 +10:00
parent 6fb49b6595
commit bd4939a2a4

View File

@ -72,7 +72,13 @@ public:
MidiChannel *getPercussionChannel() override;
void setEngineSoundFont(Common::SeekableReadStream *soundFontData) override;
bool acceptsSoundFontData() override { return true; }
bool acceptsSoundFontData() override {
#if defined(FLUIDSYNTH_VERSION_MAJOR) && FLUIDSYNTH_VERSION_MAJOR > 1
return true;
#else
return false;
#endif
}
// AudioStream API
bool isStereo() const override { return true; }