commit a19004777c73f057222e585df0960a07606d65d3 parent b51024e30197db36c18d99fd429b61779cf764b9 Author: jatinchowdhury18 <jatinchowdhury18@users.noreply.github.com> Date: Sun, 21 Feb 2021 14:57:12 -0800 Fix screenshots util showing Undefined plugin format Diffstat:
M | Plugin/Screenshots/full_gui.png | | | 0 | |
M | Plugin/Source/CMakeLists.txt | | | 1 | + |
M | Plugin/Source/Headless/ScreenshotHelper.cpp | | | 5 | +++-- |
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Plugin/Screenshots/full_gui.png b/Plugin/Screenshots/full_gui.png Binary files differ. diff --git a/Plugin/Source/CMakeLists.txt b/Plugin/Source/CMakeLists.txt @@ -55,5 +55,6 @@ set_target_properties(BinaryData PROPERTIES POSITION_INDEPENDENT_CODE TRUE) if(${BUILD_HEADLESS}) + message(STATUS "Configuring ChowTape Headless") add_subdirectory(Headless) endif() diff --git a/Plugin/Source/Headless/ScreenshotHelper.cpp b/Plugin/Source/Headless/ScreenshotHelper.cpp @@ -14,7 +14,7 @@ ScreenshotHelper::ScreenshotHelper() * Process audio through the plugin so the screenshots have * some signal show up in the meters and scopes. */ -void processAudio (ChowtapeModelAudioProcessor* plugin) +void processAudio (AudioProcessor* plugin) { constexpr double fs = 48000.0; constexpr int blockSize = 1024; @@ -71,7 +71,8 @@ void ScreenshotHelper::takeScreenshots (const ArgumentList& args) std::cout << "Generating screenshots... Saving to " << outputDir.getFullPathName() << std::endl; - auto plugin = std::make_unique<ChowtapeModelAudioProcessor>(); + // auto plugin = std::make_unique<ChowtapeModelAudioProcessor>(); + std::unique_ptr<AudioProcessor> plugin (createPluginFilterOfType (AudioProcessor::WrapperType::wrapperType_Standalone)); processAudio (plugin.get()); std::unique_ptr<AudioProcessorEditor> editor (plugin->createEditorIfNeeded());