#[repr(C)]
pub struct IPLDirectEffectParams { pub flags: IPLDirectEffectFlags, pub transmissionType: IPLTransmissionType, pub distanceAttenuation: IPLfloat32, pub airAbsorption: [IPLfloat32; 3], pub directivity: IPLfloat32, pub occlusion: IPLfloat32, pub transmission: [IPLfloat32; 3], }
Expand description

Parameters for applying a direct effect to an audio buffer.

Fields

flags: IPLDirectEffectFlags

Flags indicating which direct path effects to apply.

transmissionType: IPLTransmissionType

Mode of applying transmission effect, if \c IPL_DIRECTEFFECTFLAGS_APPLYTRANSMISSION is enabled.

distanceAttenuation: IPLfloat32

Value of distance attenuation, between 0 and 1.

airAbsorption: [IPLfloat32; 3]

3-band EQ coefficients for air absorption, each between 0 and 1.

directivity: IPLfloat32

Value of directivity term, between 0 and 1.

occlusion: IPLfloat32

Value of occlusion factor, between 0 and 1.

transmission: [IPLfloat32; 3]

3-band EQ coefficients for transmission, each between 0 and 1.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.