mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-27 22:43:36 +00:00
correct return value checking for fluidsynth_register_adriver.c
This commit is contained in:
parent
6e3f5ce390
commit
50ac3c0f3f
1 changed files with 8 additions and 0 deletions
|
@ -37,7 +37,15 @@ int main()
|
|||
|
||||
fluid_settings_t* settings = new_fluid_settings();
|
||||
res = fluid_settings_setstr(settings, "audio.driver", DRV[i]);
|
||||
|
||||
/* settings API will be refactored to return FLUID_OK|FAILED next major release
|
||||
* returning TRUE or FALSE is deprecated
|
||||
*/
|
||||
#if FLUIDSYNTH_VERSION_MAJOR >= 2
|
||||
if(res != FLUID_OK)
|
||||
#else
|
||||
if(res == 0)
|
||||
#endif
|
||||
{
|
||||
puts("audio.driver set err");
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue