Support text drag-and-drop of files and validate extensions via format manager

This commit is contained in:
Armin 2026-10-06 23:11:58 +02:00
commit 7630bb93fc
5 changed files with 89 additions and 10 deletions

View file

@ -534,6 +534,12 @@ void MonoslicerProcessor::loadAudioFile(const juce::File& file)
}
}
bool MonoslicerProcessor::canLoadFileExtension(const juce::String& filePath) const
{
juce::WildcardFileFilter filter(formatManager.getWildcardForAllFormats(), {}, {});
return filter.isFileSuitable(filePath);
}
void MonoslicerProcessor::clearSample()
{
pushUndoState();