nwhitehead / pyfluidsynth

Python bindings for FluidSynth
GNU Lesser General Public License v2.1
197 stars 56 forks source link

Add bind for fluid_version and fix get_setting #28

Closed albedozero closed 3 years ago

albedozero commented 3 years ago

Functions from fluid_settings.c in FluidSynth 1.x used 0 and 1 for return values instead of FLUID_FAILED and FLUID_OK, for some reason, which caused a problem for the Synth.get_setting method added by 54ede290d53a5e7db919066bd643fffaf6f913fc. This commit might not be necessary if FS <2.0 isn't supported any more, but adding this bind does provide another (perhaps cleaner) way of dealing with past and future API changes.