From ec13410088eb55d87ad8bb6c649b61dfd3ef601e Mon Sep 17 00:00:00 2001 From: xenakios Date: Sun, 17 Dec 2017 18:43:29 +0200 Subject: [PATCH] Use the file extensions supported by the AudioFormatManager --- Source/PluginEditor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 4a4e34d..f0245f0 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -155,9 +155,10 @@ void PaulstretchpluginAudioProcessorEditor::addAudioBlock(AudioBuffer& bu void PaulstretchpluginAudioProcessorEditor::chooseFile() { File initialloc = File::getSpecialLocation(File::userHomeDirectory); + String filterstring = processor.m_afm->getWildcardForAllFormats(); FileChooser myChooser("Please select audio file...", initialloc, - "*.wav",true); + filterstring,true); if (myChooser.browseForFileToOpen()) { File resu = myChooser.getResult();