mirror of
https://codeberg.org/armin/monoslicer.git
synced 2026-10-11 21:11:53 +02:00
Support text drag-and-drop of files and validate extensions via format manager
This commit is contained in:
parent
c10df9642c
commit
7630bb93fc
5 changed files with 89 additions and 10 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue