mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 18:54:41 +02:00
fix assert when azimuth is negative subnormal
This commit is contained in:
parent
00a8b73814
commit
2121e201d5
1 changed files with 3 additions and 0 deletions
|
@ -919,6 +919,9 @@ static void azimuthToIndex(float azimuth, int& index0, int& index1, float& frac)
|
||||||
index1 = index0 + 1;
|
index1 = index0 + 1;
|
||||||
frac = azimuth - (float)index0;
|
frac = azimuth - (float)index0;
|
||||||
|
|
||||||
|
if (index0 >= HRTF_AZIMUTHS) {
|
||||||
|
index0 -= HRTF_AZIMUTHS;
|
||||||
|
}
|
||||||
if (index1 >= HRTF_AZIMUTHS) {
|
if (index1 >= HRTF_AZIMUTHS) {
|
||||||
index1 -= HRTF_AZIMUTHS;
|
index1 -= HRTF_AZIMUTHS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue