Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for fluidsynth >= 2.0.0 #765

Closed
wants to merge 3 commits into from
Closed

Fixes for fluidsynth >= 2.0.0 #765

wants to merge 3 commits into from

Conversation

schnitzeltony
Copy link
Contributor

Build tested with fluidsynth 1.1.11 and 2.0.1.

This makes transition fluidsynth 1.x -> 2.x a lot easier.

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
* preset iteration and getters have changed
* constants for most defaults are no more available in public headers -
  fluidsynth wants to be asked

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
@@ -221,7 +221,7 @@ endif
endif

HAVE_FFMPEG = $(shell pkg-config --exists libavcodec libavformat libavutil && echo true)
HAVE_FLUIDSYNTH = $(shell pkg-config --atleast-version=1.1.7 fluidsynth && pkg-config --max-version=1.9.9 fluidsynth && echo true)
HAVE_FLUIDSYNTH = $(shell pkg-config --atleast-version=1.1.7 fluidsynth && echo true)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks very much!
Sorry my github is somehow screwed up, does not allow me to comment on the conversation tab without closing the issue, so I will make comments here.

Please make this target develop branch, not master. all new things should now go into develop first, then cherry-picked from there
There are some other small things, I will write them on the relevant lines.

@@ -73,20 +73,22 @@ class CarlaPluginFluidSynth : public CarlaPlugin
fSynth = new_fluid_synth(fSettings);
CARLA_SAFE_ASSERT_RETURN(fSynth != nullptr,);

keepFluidDefaults();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont like some the naming here. please rename to InitializeFluidDefaultsIfNeeded (which I believe is a lot more clear on what it does.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err, lowercase I, so initializeFluidDefaultsIfNeeded

@@ -1683,13 +1768,19 @@ class CarlaPluginFluidSynth : public CarlaPlugin
float** fAudio16Buffers;
float fParamBuffers[FluidSynthParametersMax];

static bool bFluidDefaultsKept;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These class static variables should have prefix "s" (both of them)

@schnitzeltony
Copy link
Contributor Author

Story continues with V2 at #766

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants