comparison 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
comparison
equal deleted inserted replaced
573:9fb190c6521b 574:b3c35447ef31
963 } 963 }
964 964
965 void 965 void
966 AudioCallbackPlaySource::setOutputLevels(float left, float right) 966 AudioCallbackPlaySource::setOutputLevels(float left, float right)
967 { 967 {
968 m_outputLeft = left; 968 if (left > m_outputLeft) m_outputLeft = left;
969 m_outputRight = right; 969 if (right > m_outputRight) m_outputRight = right;
970 } 970 }
971 971
972 bool 972 bool
973 AudioCallbackPlaySource::getOutputLevels(float &left, float &right) 973 AudioCallbackPlaySource::getOutputLevels(float &left, float &right)
974 { 974 {
975 left = m_outputLeft; 975 left = m_outputLeft;
976 right = m_outputRight; 976 right = m_outputRight;
977 m_outputLeft = 0.f;
978 m_outputRight = 0.f;
977 return true; 979 return true;
978 } 980 }
979 981
980 void 982 void
981 AudioCallbackPlaySource::setSystemPlaybackSampleRate(int sr) 983 AudioCallbackPlaySource::setSystemPlaybackSampleRate(int sr)