#[repr(C)]pub struct IPLSimulationSharedInputs {
pub listener: IPLCoordinateSpace3,
pub numRays: IPLint32,
pub numBounces: IPLint32,
pub duration: IPLfloat32,
pub order: IPLint32,
pub irradianceMinDistance: IPLfloat32,
pub pathingVisCallback: IPLPathingVisualizationCallback,
pub pathingUserData: *mut c_void,
}Expand description
Simulation parameters that are not specific to any source.
Fields§
§listener: IPLCoordinateSpace3The position and orientation of the listener.
numRays: IPLint32The number of rays to trace from the listener. Increasing this value results in more accurate reflections, at the cost of increased CPU usage.
numBounces: IPLint32The number of times each ray traced from the listener is reflected when it encounters a solid object. Increasing this value results in longer, more accurate reverb tails, at the cost of increased CPU usage during simulation.
duration: IPLfloat32The duration (in seconds) of the impulse responses generated when simulating reflections. Increasing this value results in longer, more accurate reverb tails, at the cost of increased CPU usage during audio processing.
order: IPLint32The Ambisonic order of the impulse responses generated when simulating reflections. Increasing this value results in more accurate directional variation of reflected sound, at the cost of increased CPU usage during audio processing.
irradianceMinDistance: IPLfloat32When calculating how much sound energy reaches a surface directly from a source, any source that is closer than \c irradianceMinDistance to the surface is assumed to be at a distance of \c irradianceMinDistance, for the purposes of energy calculations.
pathingVisCallback: IPLPathingVisualizationCallbackCallback for visualizing valid path segments during call to \c iplSimulatorRunPathing.
pathingUserData: *mut c_voidPointer to arbitrary user-specified data provided when calling the function that will call this callback.
Trait Implementations§
Source§fn clone(&self) -> IPLSimulationSharedInputs
fn clone(&self) -> IPLSimulationSharedInputs
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more