comparison audio/AudioCallbackRecordTarget.cpp @ 581:8cc291b13f2b 3.0-integration

Complete that fix for the record target
author Chris Cannam
date Wed, 11 Jan 2017 17:48:21 +0000
parents 298d864113f0
children 96b605673585
comparison
equal deleted inserted replaced
580:298d864113f0 581:8cc291b13f2b
200 bool 200 bool
201 AudioCallbackRecordTarget::getInputLevels(float &left, float &right) 201 AudioCallbackRecordTarget::getInputLevels(float &left, float &right)
202 { 202 {
203 left = m_inputLeft; 203 left = m_inputLeft;
204 right = m_inputRight; 204 right = m_inputRight;
205 bool valid = m_levelsSet;
205 m_inputLeft = 0.f; 206 m_inputLeft = 0.f;
206 m_inputRight = 0.f; 207 m_inputRight = 0.f;
207 return m_levelsSet; 208 m_levelsSet = false;
209 return valid;
208 } 210 }
209 211
210 void 212 void
211 AudioCallbackRecordTarget::modelAboutToBeDeleted() 213 AudioCallbackRecordTarget::modelAboutToBeDeleted()
212 { 214 {