Skip to content

Commit

Permalink
Fix MSVC compiler warning
Browse files Browse the repository at this point in the history
reg.: conversion from 'size_t' to 'const muse::thread_pool_size_t', possible loss of data
Introduced by #24576
  • Loading branch information
Jojo-Schmitz committed Sep 19, 2024
1 parent 1aec102 commit 4c79803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/audio/internal/worker/mixer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Mixer::Mixer(const modularity::ContextPtr& iocCtx)
{
ONLY_AUDIO_WORKER_THREAD;

m_taskScheduler = std::make_unique<TaskScheduler>(configuration()->desiredAudioThreadNumber());
m_taskScheduler = std::make_unique<TaskScheduler>(static_cast<thread_pool_size_t>(configuration()->desiredAudioThreadNumber()));

if (!m_taskScheduler->setThreadsPriority(ThreadPriority::High)) {
LOGE() << "Unable to change audio threads priority";
Expand Down

0 comments on commit 4c79803

Please sign in to comment.