| 175 | } |
| 176 | |
| 177 | void Looper::Poll() |
| 178 | { |
| 179 | if (mClearCommitBuffer) |
| 180 | { |
| 181 | if (mRecorder == nullptr) |
| 182 | mCommitBuffer->ClearBuffer(); |
| 183 | mCommitBuffer = nullptr; |
| 184 | mClearCommitBuffer = false; |
| 185 | } |
| 186 | |
| 187 | mCommitButton->SetShowing(mRecorder != nullptr); |
| 188 | mSwapButton->SetShowing(mRecorder != nullptr); |
| 189 | mCopyButton->SetShowing(mRecorder != nullptr); |
| 190 | mMergeButton->SetShowing(mRecorder != nullptr); |
| 191 | mWriteInputCheckbox->SetShowing(mRecorder == nullptr); |
| 192 | mQueueCaptureButton->SetShowing(mRecorder == nullptr); |
| 193 | |
| 194 | if (mGranulator && mGranulator->IsDeleted()) |
| 195 | mGranulator = nullptr; |
| 196 | } |
| 197 | |
| 198 | void Looper::Process(double time) |
| 199 | { |
nothing calls this directly
no test coverage detected