mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-17 13:38:22 -04:00
Set default directory to the waveform directory when opening an audio file for a user-defined waveform
This commit is contained in:
@@ -908,6 +908,23 @@ QString SampleBuffer::openAndSetAudioFile()
|
||||
}
|
||||
|
||||
|
||||
QString SampleBuffer::openAndSetWaveformFile()
|
||||
{
|
||||
if( m_audioFile.isEmpty() )
|
||||
{
|
||||
m_audioFile = configManager::inst()->factorySamplesDir() + "waveforms/10saw.flac";
|
||||
}
|
||||
|
||||
QString fileName = this->openAudioFile();
|
||||
|
||||
if(!fileName.isEmpty())
|
||||
{
|
||||
this->setAudioFile( fileName );
|
||||
}
|
||||
|
||||
return fileName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#undef LMMS_HAVE_FLAC_STREAM_ENCODER_H /* not yet... */
|
||||
|
||||
Reference in New Issue
Block a user