Mutex protect the envelope when manipulating the amount of nodes from the GUI. Should probably redesign this stuff a bit...Init envelope reset nodes.
This commit is contained in:
		| @@ -82,9 +82,9 @@ PaulstretchpluginAudioProcessor::PaulstretchpluginAudioProcessor() | ||||
| 	m_playposinfo.timeInSeconds = 0.0; | ||||
| 	 | ||||
|     m_free_filter_envelope = std::make_shared<breakpoint_envelope>(); | ||||
| 	m_free_filter_envelope->AddNode({ 0.0,0.5 }); | ||||
| 	m_free_filter_envelope->AddNode({ 1.0,0.5 }); | ||||
|  | ||||
| 	m_free_filter_envelope->AddNode({ 0.0,0.75 }); | ||||
| 	m_free_filter_envelope->AddNode({ 1.0,0.75 }); | ||||
| 	m_free_filter_envelope->set_reset_nodes(m_free_filter_envelope->get_all_nodes()); | ||||
|     m_recbuffer.setSize(2, 44100); | ||||
| 	m_recbuffer.clear(); | ||||
| 	if (m_afm->getNumKnownFormats()==0) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 xenakios
					xenakios