diff --git a/source/hrtf/sofa_hrtf.cpp b/source/hrtf/sofa_hrtf.cpp index 56f3a10..7fbb690 100644 --- a/source/hrtf/sofa_hrtf.cpp +++ b/source/hrtf/sofa_hrtf.cpp @@ -19,10 +19,7 @@ namespace spaudio { hrtf = mysofa_open(path.c_str(), i_sampleRate, &i_internalLength, &err); if (hrtf == nullptr) - { - std::cout << "Could not load the SOFA HRTF." << std::endl; - return; - } + throw std::runtime_error("Could not load the SOFA HRTF"); i_filterExtraLength = i_internalLength / 2; i_len = i_internalLength + i_filterExtraLength;