Use home directory for import file dialog initial location

This commit is contained in:
xenakios 2017-12-15 21:35:27 +02:00
parent 11be9bfde5
commit 9cad298ef3
2 changed files with 2 additions and 6 deletions

View File

@ -154,11 +154,7 @@ void PaulstretchpluginAudioProcessorEditor::addAudioBlock(AudioBuffer<float>& bu
void PaulstretchpluginAudioProcessorEditor::chooseFile()
{
#ifdef WIN32
File initialloc("C:/MusicAudio/sourcesamples");
#else
File initialloc("/Users/teemu/AudioProjects/sourcesamples");
#endif
File initialloc = File::getSpecialLocation(File::userHomeDirectory);
FileChooser myChooser("Please select audio file...",
initialloc,
"*.wav",true);

View File

@ -86,7 +86,7 @@
headerPath="Source/PS_Source&#10;Source/WDL&#10;" vstBinaryLocation="C:\VSTPlugins_64bit"/>
<CONFIGURATION name="Release" winWarningLevel="4" generateManifest="1" winArchitecture="x64"
debugInformationFormat="ProgramDatabase" enablePluginBinaryCopyStep="1"
linkTimeOptimisation="0" isDebug="0" optimisation="3" targetName="PaulXStretch"
linkTimeOptimisation="1" isDebug="0" optimisation="3" targetName="PaulXStretch"
headerPath="Source/PS_Source&#10;Source/WDL&#10;" vstBinaryLocation="C:\VSTPlugins_64bit"
useRuntimeLibDLL="0"/>
</CONFIGURATIONS>