#[repr(u32)]pub enum IPLHRTFInterpolation {
IPL_HRTFINTERPOLATION_NEAREST = 0,
IPL_HRTFINTERPOLATION_BILINEAR = 1,
}Expand description
Techniques for interpolating HRTF data. This is used when rendering a point source whose position relative to the listener is not contained in the measured HRTF data.
Variants§
IPL_HRTFINTERPOLATION_NEAREST = 0
Nearest-neighbor filtering, i.e., no interpolation. Selects the measurement location that is closest to the source’s actual location.
IPL_HRTFINTERPOLATION_BILINEAR = 1
Bilinear filtering. Incurs a relatively high CPU overhead as compared to nearest-neighbor filtering, so use this for sounds where it has a significant benefit. Typically, bilinear filtering is most useful for wide-band noise-like sounds, such as radio static, mechanical noise, fire, etc.
Trait Implementations§
Source§impl Clone for IPLHRTFInterpolation
impl Clone for IPLHRTFInterpolation
Source§fn clone(&self) -> IPLHRTFInterpolation
fn clone(&self) -> IPLHRTFInterpolation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IPLHRTFInterpolation
impl Debug for IPLHRTFInterpolation
Source§impl Hash for IPLHRTFInterpolation
impl Hash for IPLHRTFInterpolation
Source§impl PartialEq for IPLHRTFInterpolation
impl PartialEq for IPLHRTFInterpolation
impl Copy for IPLHRTFInterpolation
impl Eq for IPLHRTFInterpolation
impl StructuralPartialEq for IPLHRTFInterpolation
Auto Trait Implementations§
impl Freeze for IPLHRTFInterpolation
impl RefUnwindSafe for IPLHRTFInterpolation
impl Send for IPLHRTFInterpolation
impl Sync for IPLHRTFInterpolation
impl Unpin for IPLHRTFInterpolation
impl UnwindSafe for IPLHRTFInterpolation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more