Keep track of captured length and set sound play range when stopped according to that

This commit is contained in:
xenakios
2018-06-05 21:11:17 +03:00
parent 857c2adf2a
commit c010a4d48f
3 changed files with 11 additions and 2 deletions

View File

@ -222,6 +222,8 @@ private:
double m_max_reclen = 10.0;
bool m_is_recording = false;
int m_rec_pos = 0;
int m_rec_count = 0;
Range<int> m_recorded_range;
void finishRecording(int lenrecorded);
bool m_using_memory_buffer = true;
int m_cur_num_out_chans = 2;