Add option to capture only when host transport active. Add option to always pass input audio through. That should probably be a plugin parameter though...

This commit is contained in:
xenakios
2017-12-20 20:33:34 +02:00
parent 8c57fcce0d
commit 0052c77bbb
3 changed files with 21 additions and 2 deletions

View File

@ -139,6 +139,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()
{
@ -180,6 +181,7 @@ private:
int m_curmaxblocksize = 0;
double m_cur_sr = 0.0;
bool m_last_host_playing = false;
AudioBuffer<float> m_input_buffer;
//==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PaulstretchpluginAudioProcessor)
};