Allow getting state tree without imported file and options. Update spectral order component from timer.

This commit is contained in:
xenakios
2017-12-27 22:43:07 +02:00
parent 843af8a8f9
commit 7d8ba0c15f
3 changed files with 20 additions and 11 deletions

View File

@ -217,7 +217,11 @@ void PaulstretchpluginAudioProcessorEditor::timerCallback(int id)
processor.getSampleRateChecked(), bufptr->getNumSamples());
}
m_wavecomponent.setTimeSelection(processor.getTimeSelection());
if (processor.m_state_dirty)
{
m_spec_order_ed.setSource(processor.getStretchSource());
processor.m_state_dirty = false;
}
}
if (id == 3)
{
@ -362,7 +366,7 @@ String juceversiontxt = String("JUCE ") + String(JUCE_MAJOR_VERSION) + "." + Str
}
if (r == 6)
{
ValueTree tree = processor.getStateTree();
ValueTree tree = processor.getStateTree(true,true);
MemoryBlock destData;
MemoryOutputStream stream(destData, true);
tree.writeToStream(stream);