Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/SpatialaudioVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/**
* libspatialaudio patch API version
*/
#define SPATIALAUDIO_API_VERSION_PATCH 0
#define SPATIALAUDIO_API_VERSION_PATCH 1

#define SPATIALAUDIO_API_VERSION_STRING \
SPAUDIO_CONCACT_VERSION(SPATIALAUDIO_API_VERSION_MAJOR, \
Expand Down
17 changes: 9 additions & 8 deletions source/AmbisonicBinauralizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,24 +387,25 @@ namespace spaudio {
{
HRTF* p_hrtf;

try {
#if SPATIALAUDIO_SUPPORTS_SOFA
# if SPATIALAUDIO_SUPPORTS_MIT_HRTF
if (HRTFPath == "")
p_hrtf = new MIT_HRTF(nSampleRate);
else
if (HRTFPath == "")
p_hrtf = new MIT_HRTF(nSampleRate);
else
# endif
p_hrtf = new SOFA_HRTF(HRTFPath, nSampleRate);
p_hrtf = new SOFA_HRTF(HRTFPath, nSampleRate);
#else
# if SPATIALAUDIO_SUPPORTS_MIT_HRTF
p_hrtf = new MIT_HRTF(nSampleRate);
(void)HRTFPath;
p_hrtf = new MIT_HRTF(nSampleRate);
(void)HRTFPath;
# else
# error At least MySOFA or MIT_HRTF need to be enabled
# endif
#endif

if (p_hrtf == nullptr)
} catch (...) {
return nullptr;
}

if (!p_hrtf->isLoaded())
{
Expand Down
Loading