Struct hrtf::HrirSphere [−][src]
pub struct HrirSphere { /* fields omitted */ }
Expand description
HRIR (Head-Related Impulse Response) spheres is a 3d mesh whose points contains impulse responses for left and right ears. It is used for interpolation of impulse responses.
Implementations
Tries to load a sphere from a file.
Loads HRIR sphere from given source.
Coordinate system
Hrtf spheres made in right-handed coordinate system. This fact can give weird positioning issues if your application uses left-handed coordinate system. However this can be fixed very easily: iterate over every point and invert X coordinate of it.
Sample rate
HRIR spheres from this base recorded in 44100 Hz sample rate. If your output device uses different sample rate, you have to resample initial set of .wav files and regenerate HRIR spheres. There could
Applies specified transform to each point in sphere. Can be used to rotate or scale sphere. Transform shouldn’t have translation part, otherwise result of bilinear sampling is undefined.
Returns mutable reference to sphere points array.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for HrirSphere
impl Send for HrirSphere
impl Sync for HrirSphere
impl Unpin for HrirSphere
impl UnwindSafe for HrirSphere
Blanket Implementations
Mutably borrows from an owned value. Read more