Mercurial > hg > svapp
diff audio/AudioCallbackPlaySource.cpp @ 574:b3c35447ef31 3.0-integration
Wire up record monitoring
author | Chris Cannam |
---|---|
date | Wed, 04 Jan 2017 16:03:12 +0000 |
parents | 6f54789f3127 |
children | 298d864113f0 |
line wrap: on
line diff
--- a/audio/AudioCallbackPlaySource.cpp Wed Jan 04 14:22:39 2017 +0000 +++ b/audio/AudioCallbackPlaySource.cpp Wed Jan 04 16:03:12 2017 +0000 @@ -965,8 +965,8 @@ void AudioCallbackPlaySource::setOutputLevels(float left, float right) { - m_outputLeft = left; - m_outputRight = right; + if (left > m_outputLeft) m_outputLeft = left; + if (right > m_outputRight) m_outputRight = right; } bool @@ -974,6 +974,8 @@ { left = m_outputLeft; right = m_outputRight; + m_outputLeft = 0.f; + m_outputRight = 0.f; return true; }