From 72d6ee33c22c0fefa2852c5b2bc467ca0c324097 Mon Sep 17 00:00:00 2001 From: "Dipl.-Ing. Jonas Stienen" Date: Mon, 11 Dec 2017 16:30:50 +0100 Subject: [PATCH] Adding another exception for channel number determination when exporting from itaHRTF to OpenDAFF --- applications/Binaural-HRTF/HRTF_class/@itaHRTF/writeDAFFFile.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/Binaural-HRTF/HRTF_class/@itaHRTF/writeDAFFFile.m b/applications/Binaural-HRTF/HRTF_class/@itaHRTF/writeDAFFFile.m index 54b7f102..e32b2180 100644 --- a/applications/Binaural-HRTF/HRTF_class/@itaHRTF/writeDAFFFile.m +++ b/applications/Binaural-HRTF/HRTF_class/@itaHRTF/writeDAFFFile.m @@ -141,7 +141,7 @@ end %% Channels channels=this.nChannels/this.nDirections; -if(channels<1) +if( channels < 1 || mod( channels, 2 ) ~= 0 ) warning('Number of channels per record was not detected correctly, assuming 2 channel records'); channels = 2; end -- GitLab