Attempt implementing offline rendering from the plugin but not going so great. Looks like the StretchAudioSource doesn't really work that robustly...

This commit is contained in:
xenakios
2018-02-26 17:49:19 +02:00
parent 47638ba0c6
commit 909b61922b
4 changed files with 67 additions and 9 deletions

View File

@ -358,6 +358,7 @@ void PaulstretchpluginAudioProcessorEditor::showSettingsMenu()
menu.addItem(6, "Dump preset to clipboard", true, false);
#endif
menu.addItem(7, "Show technical info", true, processor.m_show_technical_info);
menu.addItem(8, "Offline render...", true, false);
int r = menu.show();
if (r >= 200 && r < 210)
{
@ -415,6 +416,10 @@ void PaulstretchpluginAudioProcessorEditor::showSettingsMenu()
toggleBool(processor.m_show_technical_info);
processor.m_propsfile->m_props_file->setValue("showtechnicalinfo", processor.m_show_technical_info);
}
if (r == 8)
{
processor.offlineRender(File("C:\\MusicAudio\\sourcesamples\\paultesmaus\\plugin_offline_test\\out.wav"));
}
}
WaveformComponent::WaveformComponent(AudioFormatManager* afm, AudioThumbnail* thumb)