Browse Source

Use the file extensions supported by the AudioFormatManager

tags/v100_p5
xenakios 7 years ago
parent
commit
ec13410088
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      Source/PluginEditor.cpp

+ 2
- 1
Source/PluginEditor.cpp View File

@@ -155,9 +155,10 @@ void PaulstretchpluginAudioProcessorEditor::addAudioBlock(AudioBuffer<float>& 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();


Loading…
Cancel
Save