Add menu action to reset parameters to initial values, except for main volume and input pass through
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user