Mark plugin dirty when changing spectral module order or module enabled state. Readme change.

This commit is contained in:
xenakios 2018-02-09 13:02:10 +02:00
parent aed9e459cf
commit b8c70ddd30
3 changed files with 10 additions and 1 deletions

View File

@ -106,6 +106,10 @@ PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor(Pau
m_parcomps[i]->setHighLighted(false);
}
};
m_spec_order_ed.ModuleOrderOrEnabledChangedCallback = [this]()
{
processor.setDirty();
};
startTimer(1, 100);
startTimer(2, 1000);
startTimer(3, 200);
@ -749,6 +753,8 @@ void SpectralChainEditor::mouseDown(const MouseEvent & ev)
{
m_order[m_cur_index].m_enabled = !m_order[m_cur_index].m_enabled;
m_src->setSpectrumProcessOrder(m_order);
if (ModuleOrderOrEnabledChangedCallback)
ModuleOrderOrEnabledChangedCallback();
repaint();
return;
}
@ -774,6 +780,8 @@ void SpectralChainEditor::mouseDrag(const MouseEvent & ev)
m_cur_index = new_index;
m_did_drag = true;
m_src->setSpectrumProcessOrder(m_order);
if (ModuleOrderOrEnabledChangedCallback)
ModuleOrderOrEnabledChangedCallback();
}
m_drag_x = ev.x;
repaint();

View File

@ -147,6 +147,7 @@ public:
void mouseDrag(const MouseEvent& ev) override;
void mouseUp(const MouseEvent& ev) override;
std::function<void(int)> ModuleSelectedCallback;
std::function<void(void)> ModuleOrderOrEnabledChangedCallback;
private:
StretchAudioSource * m_src = nullptr;
bool m_did_drag = false;

View File

@ -8,7 +8,7 @@ Released under GNU General Public License v.2 license.
History :
02-07-2018 1.0.0
02-09-2018 1.0.0
-Control/Command click on waveform seeks (if click within active play range)
-Moved prebuffering amount menu to prebuffering meter (click to show)
-Added dummy parameter to tell the host the plugin state has changed when the imported file has changed etc