fix assert when azimuth is negative subnormal

This commit is contained in:
Ken Cooke 2018-08-04 20:09:27 -07:00
parent 00a8b73814
commit 2121e201d5

View file

@ -919,6 +919,9 @@ static void azimuthToIndex(float azimuth, int& index0, int& index1, float& frac)
index1 = index0 + 1;
frac = azimuth - (float)index0;
if (index0 >= HRTF_AZIMUTHS) {
index0 -= HRTF_AZIMUTHS;
}
if (index1 >= HRTF_AZIMUTHS) {
index1 -= HRTF_AZIMUTHS;
}