Corrected warnings
This commit is contained in:
parent
d1e6f9a02a
commit
b6c1dfbe6b
1 changed files with 3 additions and 1 deletions
|
|
@ -34,12 +34,14 @@ std::optional<sfz::FilePool::FileInformation> sfz::FilePool::getFileInformation(
|
||||||
void sfz::FilePool::enqueueLoading(Voice* voice, std::string_view sample, int numFrames)
|
void sfz::FilePool::enqueueLoading(Voice* voice, std::string_view sample, int numFrames)
|
||||||
{
|
{
|
||||||
if (!loadingQueue.try_enqueue({ voice, sample, numFrames }))
|
if (!loadingQueue.try_enqueue({ voice, sample, numFrames }))
|
||||||
|
{
|
||||||
DBG("Problem enqueuing a file read for file " << sample);
|
DBG("Problem enqueuing a file read for file " << sample);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void sfz::FilePool::loadingThread()
|
void sfz::FilePool::loadingThread()
|
||||||
{
|
{
|
||||||
FileLoadingInformation fileToLoad;
|
FileLoadingInformation fileToLoad {};
|
||||||
while (!quitThread)
|
while (!quitThread)
|
||||||
{
|
{
|
||||||
if (!loadingQueue.wait_dequeue_timed(fileToLoad, 1ms))
|
if (!loadingQueue.wait_dequeue_timed(fileToLoad, 1ms))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue