From 85fa541f6a32eea20cdb35c52518236558ce75e2 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Wed, 13 Jul 2016 19:38:36 -1000 Subject: [PATCH] Remove unnecessary dirty submix flags --- lib/audiodev/AudioVoice.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/audiodev/AudioVoice.cpp b/lib/audiodev/AudioVoice.cpp index c754b02..adc170b 100644 --- a/lib/audiodev/AudioVoice.cpp +++ b/lib/audiodev/AudioVoice.cpp @@ -214,10 +214,7 @@ void AudioVoiceMono::setMonoChannelLevels(IAudioSubmix* submix, const float coef { auto search = m_sendMatrices.find(submix); if (search == m_sendMatrices.cend()) - { search = m_sendMatrices.emplace(submix, AudioMatrixMono{}).first; - m_root.m_submixesDirty = true; - } search->second.setMatrixCoefficients(coefs, slew ? m_root.m_5msFrames : 0); } @@ -237,10 +234,7 @@ void AudioVoiceMono::setStereoChannelLevels(IAudioSubmix* submix, const float co auto search = m_sendMatrices.find(submix); if (search == m_sendMatrices.cend()) - { search = m_sendMatrices.emplace(submix, AudioMatrixMono{}).first; - m_root.m_submixesDirty = true; - } search->second.setMatrixCoefficients(newCoefs, slew ? m_root.m_5msFrames : 0); } @@ -406,10 +400,7 @@ void AudioVoiceStereo::setMonoChannelLevels(IAudioSubmix* submix, const float co auto search = m_sendMatrices.find(submix); if (search == m_sendMatrices.cend()) - { search = m_sendMatrices.emplace(submix, AudioMatrixStereo{}).first; - m_root.m_submixesDirty = true; - } search->second.setMatrixCoefficients(newCoefs, slew ? m_root.m_5msFrames : 0); } @@ -417,10 +408,7 @@ void AudioVoiceStereo::setStereoChannelLevels(IAudioSubmix* submix, const float { auto search = m_sendMatrices.find(submix); if (search == m_sendMatrices.cend()) - { search = m_sendMatrices.emplace(submix, AudioMatrixStereo{}).first; - m_root.m_submixesDirty = true; - } search->second.setMatrixCoefficients(coefs, slew ? m_root.m_5msFrames : 0); }