Skip to content

Commit

Permalink
Temporarily removing some loading code
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Sep 23, 2024
1 parent 604372e commit 7d95aa5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ target_compile_definitions(CHOWTapeModel
JUCE_VST3_CAN_REPLACE_VST2=0
JUCE_JACK=1
JUCE_ALSA=1
CHOWDSP_AUTO_UPDATE=1
CHOWDSP_AUTO_UPDATE=0
CHOWDSP_GIT_BRANCH="${GIT_BRANCH}"
CHOWDSP_GIT_COMMIT_HASH="${GIT_COMMIT_HASH}"
CHOWDSP_BUILD_FQDN="${PLUGIN_BUILD_FQDN}"
Expand Down
2 changes: 1 addition & 1 deletion Plugin/Source/GUI/AutoUpdating.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AutoUpdater : public Component
{
public:
AutoUpdater();
~AutoUpdater();
~AutoUpdater() override;

void paint (Graphics& g) override;
void resized() override;
Expand Down
13 changes: 10 additions & 3 deletions Plugin/Source/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,14 @@ void ChowtapeModelAudioProcessor::latencyCompensation()

AudioProcessorEditor* ChowtapeModelAudioProcessor::createEditor()
{
if (openGLHelper == nullptr)
openGLHelper = std::make_unique<chowdsp::OpenGLHelper>();
// if (openGLHelper == nullptr)
// {
// const auto start = std::chrono::high_resolution_clock::now();
// openGLHelper = std::make_unique<chowdsp::OpenGLHelper>();
// const auto end = std::chrono::high_resolution_clock::now();
// auto dur = std::chrono::duration_cast<std::chrono::milliseconds> (end - start).count();
// dur = 0;
// }

auto builder = std::make_unique<foleys::MagicGUIBuilder> (magicState);
builder->registerJUCEFactories();
Expand Down Expand Up @@ -282,7 +288,8 @@ AudioProcessorEditor* ChowtapeModelAudioProcessor::createEditor()
// we need to set resize limits for StandalonePluginHolder
editor->setResizeLimits (10, 10, 2000, 2000);

openGLHelper->setComponent (editor);
if (openGLHelper != nullptr)
openGLHelper->setComponent (editor);

return editor;
}
Expand Down

0 comments on commit 7d95aa5

Please sign in to comment.