change to construction-time reference

This commit is contained in:
Alex Birch
2018-04-10 01:20:23 +01:00
parent 9427a029b9
commit d7b87fe84f
3 changed files with 11 additions and 14 deletions

View File

@ -16,11 +16,11 @@ using std::shared_ptr;
class FluidSynthModel {
public:
FluidSynthModel();
FluidSynthModel(SharesParams& p);
~FluidSynthModel();
fluid_synth_t* getSynth();
void initialise(SharesParams& p);
void initialise();
BanksToPresets getBanks();
@ -57,7 +57,7 @@ public:
void removeListener (Listener* listener);
private:
SharesParams* sharesParams;
SharesParams& sharesParams;
fluid_synth_t* synth;
fluid_settings_t* settings;