Add menu action to reset parameters to initial values, except for main volume and input pass through

This commit is contained in:
xenakios
2017-12-26 18:12:22 +02:00
parent 34002da183
commit 29e46bd008
3 changed files with 24 additions and 4 deletions

View File

@ -279,10 +279,11 @@ void PaulstretchpluginAudioProcessorEditor::chooseFile()
void PaulstretchpluginAudioProcessorEditor::showSettingsMenu()
{
PopupMenu menu;
menu.addItem(4, "Reset parameters", true, false);
menu.addItem(1, "Play when host transport running", true, processor.m_play_when_host_plays);
menu.addItem(2, "Capture when host transport running", true, processor.m_capture_when_host_plays);
//menu.addItem(3, "Prebuffering", true, processor.m_use_backgroundbuffering);
PopupMenu bufferingmenu;
int curbufamount = processor.getPreBufferAmount();
bufferingmenu.addItem(100,"None",true,curbufamount == -1);
@ -302,6 +303,10 @@ void PaulstretchpluginAudioProcessorEditor::showSettingsMenu()
{
processor.m_capture_when_host_plays = !processor.m_capture_when_host_plays;
}
if (r == 4)
{
processor.resetParameters();
}
if (r == 3)
{
String fftlib = fftwf_version;