Made input capture buffer circular and update waveform thumbnail while capturing audio.

This commit is contained in:
xenakios
2017-11-15 17:52:47 +02:00
parent c34961995d
commit f4c8d2891b
4 changed files with 76 additions and 18 deletions

View File

@ -71,7 +71,7 @@ private:
bool m_ready_to_play = false;
AudioBuffer<float> m_recbuffer;
double m_max_reclen = 10.0;
double m_max_reclen = 5;
bool m_is_recording = false;
int m_rec_pos = 0;
void finishRecording(int lenrecorded);