Switch to using Juce CriticalSection in StretchSource. Especially when used with tryEnter, seems to help the audio glitches a lot, even when running under the debugger...

This commit is contained in:
xenakios
2017-12-12 20:27:29 +02:00
parent 68d5674eb9
commit 7805f1a0aa
2 changed files with 43 additions and 42 deletions

View File

@ -128,7 +128,7 @@ private:
int64_t m_maxloops = 0;
std::unique_ptr<WDL_Resampler> m_resampler;
std::vector<double> m_resampler_outbuf;
std::recursive_mutex m_mutex;
CriticalSection m_cs;
std::vector<int> m_specproc_order;
bool m_stop_play_requested = false;
double m_freeze_pos = 0.0;