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

Method SetRecording

Source/MultitrackRecorder.cpp:388–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386}
387
388void MultitrackRecorderTrack::SetRecording(bool record)
389{
390 if (record)
391 {
392 if (mRecordingLength == 0)
393 {
394 mRecordingLength = 0;
395
396 for (size_t i = mRecordChunks.size(); i < kMinRecordingChunks; ++i)
397 {
398 mRecordChunks.push_back(new ChannelBuffer(kRecordingChunkSize));
399 mRecordChunks[i]->GetChannel(0); //set up buffer
400 }
401
402 for (size_t i = 0; i < mRecordChunks.size(); ++i)
403 mRecordChunks[i]->Clear();
404 }
405
406 mDoRecording = true;
407 }
408 else
409 {
410 mDoRecording = false;
411 }
412}
413
414Sample* MultitrackRecorderTrack::BounceRecording()
415{

Callers 2

CheckboxUpdatedMethod · 0.45
SetUpFromSaveDataMethod · 0.45

Calls 3

sizeMethod · 0.80
GetChannelMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected