Audio input capture more or less running

This commit is contained in:
xenakios
2017-11-13 22:35:36 +02:00
parent c32e64a570
commit 76de3b12a5
7 changed files with 82 additions and 11 deletions

View File

@ -60,13 +60,15 @@ public:
return dynamic_cast<AudioParameterFloat*>(getParameters()[index]);
}
void setRecordingEnabled(bool b);
bool isRecordingEnabled() { return m_is_recording; }
double getRecordingPositionPercent();
private:
std::unique_ptr<Control> m_control;
std::unique_ptr<AudioFormatManager> m_afm;
bool m_ready_to_play = false;
AudioBuffer<float> m_recbuffer;
double m_max_reclen = 10.0;
bool m_is_recording = true;
bool m_is_recording = false;
int m_rec_pos = 0;
//==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PaulstretchpluginAudioProcessor)