3D Tune-In Toolkit is a custom open-source C++ library developed within the EU-funded project 3D Tune-In. The Toolkit provides a high level of realism and immersiveness within binaural 3D audio simulations, while allowing for the emulation of hearing aid devices and of different typologies of hearing loss.
In HRTF.cpp, void CHRTF::AddHRIR (float azimuth, float elevation, THRIRStruct && newHRIR), line 66, there is a problem when rounding Azimuth and Elevation.
Using some databases, such as "H3_48K_24bit_256tap_FIR_SOFA.sofa", whose azimuth has some decimal data, cause an error using emplace.
For example:
the data 75 and 91 have same elevation(-81) but different azimuth(12.8 and 13.3). When rounding, this two azimuth will be the same (13). So, using emplace the first time will place the data in { 13, -81} , but the second time it will see there is already data in that position and descard it.
In HRTF.cpp,
void CHRTF::AddHRIR (float azimuth, float elevation, THRIRStruct && newHRIR)
, line 66, there is a problem when rounding Azimuth and Elevation.Using some databases, such as "H3_48K_24bit_256tap_FIR_SOFA.sofa", whose azimuth has some decimal data, cause an error using emplace.
For example: the data 75 and 91 have same elevation(-81) but different azimuth(12.8 and 13.3). When rounding, this two azimuth will be the same (13). So, using emplace the first time will place the data in { 13, -81} , but the second time it will see there is already data in that position and descard it.