Collect error for non existing samples
This commit is contained in:
@@ -234,6 +234,14 @@ void audioFileProcessor::loadSettings( const QDomElement & _this )
|
||||
if( _this.attribute( "src" ) != "" )
|
||||
{
|
||||
setAudioFile( _this.attribute( "src" ), false );
|
||||
|
||||
QString absolutePath = m_sampleBuffer.tryToMakeAbsolute( m_sampleBuffer.audioFile() );
|
||||
if ( !QFileInfo( absolutePath ).exists() )
|
||||
{
|
||||
QString message = tr( "Sample not found: %1" ).arg( m_sampleBuffer.audioFile() );
|
||||
|
||||
Engine::getSong()->collectError( message );
|
||||
}
|
||||
}
|
||||
else if( _this.attribute( "sampledata" ) != "" )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user