The filepool is better configured for VST applications
This commit is contained in:
parent
b41aa08464
commit
ee6f714b3e
2 changed files with 3 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ void sfz::FilePool::loadingThread() noexcept
|
|||
{
|
||||
FileLoadingInformation fileToLoad {};
|
||||
while (!quitThread) {
|
||||
if (!loadingQueue.wait_dequeue_timed(fileToLoad, 100ms))
|
||||
if (!loadingQueue.wait_dequeue_timed(fileToLoad, 10ms))
|
||||
continue;
|
||||
|
||||
if (fileToLoad.voice == nullptr) {
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#pragma once
|
||||
#include "Config.h"
|
||||
#include "Defaults.h"
|
||||
#include "LeakDetector.h"
|
||||
#include "AudioBuffer.h"
|
||||
|
|
@ -67,7 +68,7 @@ private:
|
|||
unsigned ticket;
|
||||
};
|
||||
|
||||
moodycamel::BlockingReaderWriterQueue<FileLoadingInformation> loadingQueue;
|
||||
moodycamel::BlockingReaderWriterQueue<FileLoadingInformation> loadingQueue { config::numVoices };
|
||||
void loadingThread() noexcept;
|
||||
std::thread fileLoadingThread;
|
||||
bool quitThread { false };
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue