looks like we do not listen to our own events, so move that elsewhere
This commit is contained in:
parent
d7b87fe84f
commit
649a1fcf36
|
@ -130,6 +130,7 @@ fluid_synth_t* FluidSynthModel::getSynth() {
|
||||||
|
|
||||||
void FluidSynthModel::onFileNameChanged(const string &absPath) {
|
void FluidSynthModel::onFileNameChanged(const string &absPath) {
|
||||||
unloadAndLoadFont(absPath);
|
unloadAndLoadFont(absPath);
|
||||||
|
sharesParams.setSoundFontPath(String(absPath));
|
||||||
eventListeners.call(&FluidSynthModel::Listener::fontChanged, this, absPath);
|
eventListeners.call(&FluidSynthModel::Listener::fontChanged, this, absPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -151,7 +152,6 @@ FluidSynthModel::Listener::~Listener() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void FluidSynthModel::Listener::fontChanged(FluidSynthModel * model, const string &absPath) {
|
void FluidSynthModel::Listener::fontChanged(FluidSynthModel * model, const string &absPath) {
|
||||||
model->sharesParams.setSoundFontPath(String(absPath));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|
Loading…
Reference in New Issue
Block a user