Commit 5cc1c170 authored by Jan-Gerrit Richter's avatar Jan-Gerrit Richter

added errors if sofa is not installed

parent 0bdea66b
......@@ -520,6 +520,10 @@ classdef itaHRTF < itaAudio
function this = set.sofa2itaHRTF(this,pathFile)
%% check if sofa is installed
if ~exist('SOFAstart.m','file')
error('SOFA not installed. Run ita_sofa_install');
end
if ~exist(pathFile,'file')
f=filesep;
pathFile=[SOFAdbPath f 'SOFA' f pathFile];
......
......@@ -26,6 +26,11 @@ else
end
%% check if sofa is installed
if ~exist('SOFAstart.m','file')
error('SOFA not installed. Run ita_sofa_install');
end
%% Open the sofaFile
......
......@@ -52,6 +52,14 @@ userDataFields = {'GLOBAL_Conventions','GLOBAL_Version','GLOBAL_SOFAConventions'
,'EmitterPosition','EmitterPosition_Type','EmitterPosition_Units','RoomCornerA','RoomCornerA_Type','RoomCornerA_Units' ...
,'RoomCornerB','RoomCornerB_Type','RoomCornerB_Units'};
%% check if sofa is installed
if ~exist('SOFAstart.m','file')
error('SOFA not installed. Run ita_sofa_install');
end
%%
switch(sArgs.dataType)
case 'HRTF'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment