MCPcopy Create free account
hub / github.com/LMMS/lmms / checkGate

Method checkGate

src/core/Effect.cpp:139–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137
138
139void Effect::checkGate( double _out_sum )
140{
141 if( m_autoQuitDisabled )
142 {
143 return;
144 }
145
146 // Check whether we need to continue processing input. Restart the
147 // counter if the threshold has been exceeded.
148 if( _out_sum - gate() <= typeInfo<float>::minEps() )
149 {
150 incrementBufferCount();
151 if( bufferCount() > timeout() )
152 {
153 stopRunning();
154 resetBufferCount();
155 }
156 }
157 else
158 {
159 resetBufferCount();
160 }
161}
162
163
164

Callers

nothing calls this directly

Calls 6

gateFunction · 0.85
incrementBufferCountFunction · 0.85
bufferCountFunction · 0.85
timeoutFunction · 0.85
stopRunningFunction · 0.85
resetBufferCountFunction · 0.85

Tested by

no test coverage detected