MCPcopy Create free account
hub / github.com/LMMS/lmms / openAndSetWaveformFile

Method openAndSetWaveformFile

src/core/SampleBuffer.cpp:1068–1087  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1066
1067
1068QString SampleBuffer::openAndSetWaveformFile()
1069{
1070 if( m_audioFile.isEmpty() )
1071 {
1072 m_audioFile = ConfigManager::inst()->factorySamplesDir() + "waveforms/10saw.flac";
1073 }
1074
1075 QString fileName = this->openAudioFile();
1076
1077 if(!fileName.isEmpty())
1078 {
1079 this->setAudioFile( fileName );
1080 }
1081 else
1082 {
1083 m_audioFile = "";
1084 }
1085
1086 return fileName;
1087}
1088
1089
1090

Callers 3

askUserDefWaveMethod · 0.80
setWaveToUserMethod · 0.80

Calls 4

openAudioFileMethod · 0.95
setAudioFileMethod · 0.95
instFunction · 0.50
isEmptyMethod · 0.45

Tested by

no test coverage detected