Skip to content
Snippets Groups Projects
Commit c4d76119 authored by leprob001's avatar leprob001
Browse files

The soundsource file that is given in artoa.ini is now loaded at startup.

parent 672528dc
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,17 @@ if isempty(artoaDataInput.ini) ...@@ -51,6 +51,17 @@ if isempty(artoaDataInput.ini)
error([mfilename ': artoa.ini has been found but is empty. Please use a valid artoa.ini!']); error([mfilename ': artoa.ini has been found but is empty. Please use a valid artoa.ini!']);
end end
%% Read soundsource file if existent
try
soundsourceFilepath = artoaDataInput.ini.files.soundsourcefile;
if ~isfile(soundsourceFilepath)
error([mfilename ': ' soundsourceFilepath ' is not a file. Please check your artoa.ini!']);
end
artoaDataInput.soundsources = artoa.load.soundsources(soundsourceFilepath);
artoa.soundsources.generateSoundSourceColors();
catch ex
error([mfilename ': Reading soundsource file failed with the following message: ' ex.message]);
end
%% Start artoa4 %% Start artoa4
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment