MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / Poll

Method Poll

Source/Looper.cpp:177–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void 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
198void Looper::Process(double time)
199{

Callers

nothing calls this directly

Calls 3

ClearBufferMethod · 0.80
IsDeletedMethod · 0.80
SetShowingMethod · 0.45

Tested by

no test coverage detected