Use the file extensions supported by the AudioFormatManager
This commit is contained in:
parent
7ea18cc805
commit
ec13410088
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user