OrgInterpolation

Trait OrgInterpolation 

Source
pub trait OrgInterpolation {
    // Required method
    unsafe fn interpolate(wave: &[i8], pos: u32, frac: f32) -> f32;
}
Expand description

Interpolation for Organya Music synthesis.

Required Methods§

Source

unsafe fn interpolate(wave: &[i8], pos: u32, frac: f32) -> f32

Interpolate the wave from (pos).(frac). This function is called at audio rate.

§Safety

Caller must guarantee that

  • wave is 256-length wave or [16, 500000] length sample,
  • pos < wave.len().

These strict requirements can enable more performant code.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§