Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
5cc1c170
Commit
5cc1c170
authored
Apr 05, 2018
by
Jan-Gerrit Richter
Browse files
added errors if sofa is not installed
parent
0bdea66b
Changes
3
Hide whitespace changes
Inline
Side-by-side
applications/Binaural-HRTF/HRTF_class/@itaHRTF/itaHRTF.m
View file @
5cc1c170
...
...
@@ -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
];
...
...
kernel/DataAudio_IO/ita_read/ita_read_sofa.m
View file @
5cc1c170
...
...
@@ -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
...
...
kernel/DataAudio_IO/ita_write/ita_write_sofa.m
View file @
5cc1c170
...
...
@@ -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'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment