encapsulate responsibility of params. add params for ADSR and filter. attempt to sync Slider. not obviously working yet.

This commit is contained in:
Alex Birch
2019-07-01 23:55:14 +01:00
parent 758dda40a9
commit 218beb00e7
16 changed files with 430 additions and 96 deletions

View File

@ -19,7 +19,7 @@ using namespace std;
class FluidSynthModel {
public:
FluidSynthModel(SharesParams& p);
FluidSynthModel(shared_ptr<SharesParams> sharedParams);
~FluidSynthModel();
fluid_synth_t* getSynth();
@ -65,7 +65,7 @@ public:
const String& getCurrentSoundFontAbsPath();
private:
SharesParams& sharesParams;
shared_ptr<SharesParams> sharedParams;
fluid_synth_t* synth;
fluid_settings_t* settings;