Skip to content

Commit

Permalink
Traktor: Minor cleanup in AudioSystem.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed Jan 1, 2025
1 parent b0d22cc commit b854a30
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions code/Sound/AudioSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,12 @@ void AudioSystem::threadMixer()
timerMixer.reset();
while (!m_threadMixer->stopped())
{
double startTime = timerMixer.getElapsedTime();
double deltaTime = timerMixer.getDeltaTime();
const double startTime = timerMixer.getElapsedTime();

// Read blocks from channels.
m_channelsLock.wait();
{
channelsCount = uint32_t(m_channels.size());
channelsCount = (uint32_t)m_channels.size();
for (uint32_t i = 0; i < channelsCount; ++i)
{
m_requestBlocks[i].samplesCount = m_desc.driverDesc.frameSamples;
Expand Down Expand Up @@ -350,8 +349,8 @@ void AudioSystem::threadMixer()
// Move block back into heap.
m_samplesBlocks.push_back(frameBlock.samples[0]);

double endTime = timerMixer.getElapsedTime();
m_mixerThreadTime = (endTime - startTime) * 0.1f + m_mixerThreadTime * 0.9f;
const double endTime = timerMixer.getElapsedTime();
m_mixerThreadTime = (endTime - startTime) * 0.1 + m_mixerThreadTime * 0.9;
}
}

Expand Down

0 comments on commit b854a30

Please sign in to comment.