move soundFont to its own tag. remove extraneous valueTree. listen directly to relevant part of tree.

This commit is contained in:
Alex Birch
2019-07-10 23:13:58 +01:00
parent 568495ea74
commit d972a23ce8
3 changed files with 47 additions and 22 deletions

View File

@ -20,9 +20,9 @@ using namespace std;
class FluidSynthModel: public ValueTree::Listener {
public:
FluidSynthModel(
AudioProcessorValueTreeState& valueTreeState,
AudioProcessorValueTreeState& valueTreeState
// SharesParams& sharedParams
ValueTree& valueTree
// ValueTree& valueTree
);
~FluidSynthModel();
@ -106,7 +106,7 @@ private:
AudioProcessorValueTreeState& valueTreeState;
// SharesParams& sharedParams;
ValueTree& valueTree;
// ValueTree& valueTree;
// https://stackoverflow.com/questions/38980315/is-stdunique-ptr-deletion-order-guaranteed
// members are destroyed in reverse of the order they're declared