Use the file extensions supported by the AudioFormatManager

This commit is contained in:
xenakios 2017-12-17 18:43:29 +02:00
parent 7ea18cc805
commit ec13410088

View File

@ -155,9 +155,10 @@ void PaulstretchpluginAudioProcessorEditor::addAudioBlock(AudioBuffer<float>& bu
void PaulstretchpluginAudioProcessorEditor::chooseFile() void PaulstretchpluginAudioProcessorEditor::chooseFile()
{ {
File initialloc = File::getSpecialLocation(File::userHomeDirectory); File initialloc = File::getSpecialLocation(File::userHomeDirectory);
String filterstring = processor.m_afm->getWildcardForAllFormats();
FileChooser myChooser("Please select audio file...", FileChooser myChooser("Please select audio file...",
initialloc, initialloc,
"*.wav",true); filterstring,true);
if (myChooser.browseForFileToOpen()) if (myChooser.browseForFileToOpen())
{ {
File resu = myChooser.getResult(); File resu = myChooser.getResult();