Use Juce CriticalSection for main audio processor too. Use tryEnter for changing main volume parameter. Looks like it's best to do the tryEnter stuff for everything possible...

This commit is contained in:
xenakios
2017-12-12 20:43:43 +02:00
parent 7805f1a0aa
commit 5a17f43763
3 changed files with 12 additions and 9 deletions

View File

@ -104,7 +104,7 @@ private:
void finishRecording(int lenrecorded);
bool m_using_memory_buffer = true;
int m_cur_num_out_chans = 2;
std::mutex m_mutex;
CriticalSection m_cs;
File m_current_file;