| 137 | |
| 138 | |
| 139 | void 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 |
nothing calls this directly
no test coverage detected