| 87 | } |
| 88 | |
| 89 | void MultitrackRecorder::AddTrack() |
| 90 | { |
| 91 | int recordingLength = GetRecordingLength(); |
| 92 | |
| 93 | ModuleFactory::Spawnable spawnable; |
| 94 | spawnable.mLabel = "multitrackrecordertrack"; |
| 95 | MultitrackRecorderTrack* track = dynamic_cast<MultitrackRecorderTrack*>(TheSynth->SpawnModuleOnTheFly(spawnable, 0, 0, true)); |
| 96 | track->Setup(this, recordingLength); |
| 97 | track->SetName(GetUniqueName("track", mModuleContainer.GetModuleNames<MultitrackRecorderTrack*>()).c_str()); |
| 98 | mModuleContainer.TakeModule(track); |
| 99 | mTracks.push_back(track); |
| 100 | } |
| 101 | |
| 102 | void MultitrackRecorder::RemoveTrack(MultitrackRecorderTrack* track) |
| 103 | { |
nothing calls this directly
no test coverage detected