Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
buddhi1980 committed Mar 29, 2018
2 parents 524c09e + 1b453f7 commit 7492e24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions mandelbulber2/src/audio_track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ void cAudioTrack::Clear()
void cAudioTrack::LoadAudio(const QString &_filename)
{
QString filename = FilePathHelperSounds(_filename);
// check if file exists
QFileInfo file(filename);
if (!(file.exists() && file.isFile())) return;

WriteLogString("Loading audio started", filename, 2);

Expand Down
2 changes: 0 additions & 2 deletions mandelbulber2/src/audio_track_collection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,6 @@ void cAudioTrackCollection::LoadAllAudioFiles(cParameterContainer *params)
filename = cachedFileName;
}
}
// skip if invalid
else break;
// TEMPORARY CODE TO LOAD AUDIO OVER HTTP AND CACHE

if (!filename.isEmpty() && !audioTracks[listOfAllParameters[i]]->isLoaded())
Expand Down

0 comments on commit 7492e24

Please sign in to comment.