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

@ -80,10 +80,11 @@ public:
std::unique_ptr<PropertiesFile> m_props_file;
};
class PaulstretchpluginAudioProcessor : public AudioProcessor, public MultiTimer
class PaulstretchpluginAudioProcessor : public AudioProcessor,
public MultiTimer
{
public:
//==============================================================================
PaulstretchpluginAudioProcessor();
~PaulstretchpluginAudioProcessor();
@ -140,7 +141,7 @@ public:
bool m_play_when_host_plays = false;
bool m_capture_when_host_plays = false;
bool m_use_backgroundbuffering = true;
void resetParameters();
void setPreBufferAmount(int x);
int getPreBufferAmount();
private:
@ -178,6 +179,7 @@ private:
double m_cur_sr = 0.0;
bool m_last_host_playing = false;
AudioBuffer<float> m_input_buffer;
std::vector<float> m_reset_pars;
//==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PaulstretchpluginAudioProcessor)
};