diff --git a/src/sfizz/FilePool.h b/src/sfizz/FilePool.h index 6e997c87..6471c75f 100644 --- a/src/sfizz/FilePool.h +++ b/src/sfizz/FilePool.h @@ -258,8 +258,8 @@ private: uint32_t preloadSize { config::preloadSize }; Oversampling oversamplingFactor { config::defaultOversamplingFactor }; // Signals - bool quitThread { false }; - bool emptyQueue { false }; + volatile bool quitThread { false }; + volatile bool emptyQueue { false }; std::atomic threadsLoading { 0 }; RTSemaphore workerBarrier;