Skip to content

Commit

Permalink
fix compil
Browse files Browse the repository at this point in the history
  • Loading branch information
benkuper committed Dec 22, 2023
1 parent 8e1197b commit 373e3d0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
20 changes: 0 additions & 20 deletions Source/TimeMachine/ChataigneSequenceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,6 @@ Sequence* ChataigneSequenceManager::createItem()
return new ChataigneSequence();
}

void ChataigneSequenceManager::createSequenceFromAudioFile(File f)
{
if (ModuleManager::getInstance()->getItemsWithType<AudioModule>().size() == 0) {
AudioModule* m = new AudioModule();
ModuleManager::getInstance()->addItem(m);
}

ChataigneSequence* seq = new ChataigneSequence();
addItem(seq);
seq->setNiceName(f.getFileNameWithoutExtension());

ChataigneAudioLayer* l = new ChataigneAudioLayer(seq, var());
seq->layerManager->addItem(l);
l->uiHeight->setValue(80);

AudioLayerClip* clip = new AudioLayerClip();
l->clipManager.addItem(clip);
clip->filePath->setValue(f.getFullPathName());
}

void ChataigneSequenceManager::showMenuAndGetSequenceStatic(ControllableContainer* startFromCC, std::function<void(Sequence*)> returnFunc)
{
getInstance()->showMenuAndGetSequence(startFromCC, returnFunc);
Expand Down
2 changes: 0 additions & 2 deletions Source/TimeMachine/ChataigneSequenceManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ class ChataigneSequenceManager :

std::unique_ptr<SequenceModule> module;

void createSequenceFromAudioFile(File f) override;

static void showMenuAndGetSequenceStatic(ControllableContainer* startFromCC, std::function<void(Sequence*)> returnFunc);
static void showMenuAndGetLayerStatic(ControllableContainer* startFromCC, std::function<void(SequenceLayer*)> returnFunc);
static void showMenuAndGetCueStatic(ControllableContainer* startFromCC, std::function<void(TimeCue*)> returnFunc);
Expand Down

0 comments on commit 373e3d0

Please sign in to comment.