Skip to content

Commit 3e0cf0f

Browse files
committed
Simply (hopefuly) the explanation about the HRIR set ordering
1 parent 560f34e commit 3e0cf0f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

hrtf.txt

+3-8
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,9 @@ to the next elevation, or by the total count for the last elevation).
6868
The actual coefficients follow. Each coefficient is a signed 16-bit sample,
6969
with each HRIR set being a consecutive number of samples. For each elevation,
7070
the HRIR sets first start with a neutral "in-front" set (that is, one that is
71-
applied equally to the left and right outputs). After this, the HRIR sets
72-
follow a clockwise pattern, with the first half specifying the "occluded" HRIRs
73-
(a half-circle for the ear on the opposite side of the sound source), and the
74-
second half specify the "unoccluded" HRIRs (a half-circle for the ear on the
75-
same side as the sound source). OpenAL Soft automatically selects the two HRIR
76-
sets to use based on the angle to the source from the listener, and swap them
77-
depending on which side the sound is on to create a complete sphere for both
78-
the occluded and unoccluded sets.
71+
applied equally to the left and right outputs). After this, the sets follow a
72+
clockwise pattern, constructing a full circle for the left ear only. The right
73+
ear uses the same sets but in reverse (ie, left = angle, right = 360-angle).
7974

8075
After the coefficients is an array of unsigned 8-bit delay values, one for each
8176
HRIR set. This is the delay, in samples, after recieving an input sample before

0 commit comments

Comments
 (0)