diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 4dddf29..32a27c1 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -279,7 +279,7 @@ void PaulstretchpluginAudioProcessorEditor::showSettingsMenu() PopupMenu menu; 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, "Always pass audio input through", true, processor.m_pass_input_through); + //menu.addItem(3, "Prebuffering", true, processor.m_use_backgroundbuffering); PopupMenu bufferingmenu; int curbufamount = processor.getPreBufferAmount(); @@ -299,10 +299,7 @@ void PaulstretchpluginAudioProcessorEditor::showSettingsMenu() { processor.m_capture_when_host_plays = !processor.m_capture_when_host_plays; } - if (r == 3) - { - processor.m_pass_input_through = !processor.m_pass_input_through; - } + if (r >= 100 && r < 200) { if (r == 100) diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index ae49625..0606131 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -473,7 +473,7 @@ void PaulstretchpluginAudioProcessor::processBlock (AudioSampleBuffer& buffer, M { m_buffering_source->getNextAudioBlock(aif); } - if (m_pass_input_through == true) + if (getParameter(cpi_passthrough) > 0.5f) { for (int i = 0; i < totalNumInputChannels; ++i) { diff --git a/Source/PluginProcessor.h b/Source/PluginProcessor.h index f3e447c..0caf75e 100644 --- a/Source/PluginProcessor.h +++ b/Source/PluginProcessor.h @@ -140,7 +140,7 @@ public: bool m_play_when_host_plays = false; bool m_capture_when_host_plays = false; bool m_use_backgroundbuffering = true; - bool m_pass_input_through = false; + void setPreBufferAmount(int x); int getPreBufferAmount(); private: