Enum DspType

Source
#[repr(C)]
pub enum DspType {
Show 25 variants Unknown = 0, Mixer = 1, Oscillator = 2, LowPass = 3, ITLowPass = 4, HighPass = 5, Echo = 6, Flange = 7, Distortion = 8, Normalize = 9, Parameq = 10, PitchShift = 11, Chorus = 12, VSTPlugin = 13, WinampPlugin = 14, ITEcho = 15, Compressor = 16, SFXReverb = 17, LowPassSimple = 18, Delay = 19, Tremolo = 20, LADSPAPlugin = 21, HighPassSimple = 22, Hardware = 1_000, ForceInt = 65_536,
}
Expand description

These definitions can be used for creating FMOD defined special effects or DSP units. Used with Dsp::set_parameter and Dsp::get_parameter.

Variants§

§

Unknown = 0

This unit was created via a non FMOD plugin so has an unknown purpose.

§

Mixer = 1

This unit does nothing but take inputs and mix them together then feed the result to the soundcard unit.

§

Oscillator = 2

This unit generates sine/square/saw/triangle or noise tones.

§

LowPass = 3

This unit filters sound using a high quality, resonant lowpass filter algorithm but consumes more CPU time.

§

ITLowPass = 4

This unit filters sound using a resonant lowpass filter algorithm that is used in Impulse Tracker, but with limited Cutoff range (0 to 8060hz).

§

HighPass = 5

This unit filters sound using a resonant highpass filter algorithm.

§

Echo = 6

This unit produces an echo on the sound and fades out at the desired rate.

§

Flange = 7

This unit produces a flange effect on the sound.

§

Distortion = 8

This unit distorts the sound.

§

Normalize = 9

This unit normalizes or amplifies the sound to a certain level.

§

Parameq = 10

This unit attenuates or amplifies a selected frequency range.

§

PitchShift = 11

This unit bends the pitch of a sound without changing the speed of playback.

§

Chorus = 12

This unit produces a chorus effect on the sound.

§

VSTPlugin = 13

This unit allows the use of Steinberg VST plugins

§

WinampPlugin = 14

This unit allows the use of Nullsoft Winamp plugins

§

ITEcho = 15

This unit produces an echo on the sound and fades out at the desired rate as is used in Impulse Tracker.

§

Compressor = 16

This unit implements dynamic compression (linked multichannel, wideband)

§

SFXReverb = 17

This unit implements SFX reverb

§

LowPassSimple = 18

This unit filters sound using a simple lowpass with no resonance, but has flexible Cutoff and is fast.

§

Delay = 19

This unit produces different delays on individual channels of the sound.

§

Tremolo = 20

This unit produces a tremolo / chopper effect on the sound.

§

LADSPAPlugin = 21

This unit allows the use of LADSPA standard plugins.

§

HighPassSimple = 22

This unit filters sound using a simple highpass with no resonance, but has flexible Cutoff and is fast.

§

Hardware = 1_000

Offset that platform specific FMOD_HARDWARE DSPs will start at.

§

ForceInt = 65_536

Makes sure this enum is signed 32bit.

Trait Implementations§

Source§

impl Clone for DspType

Source§

fn clone(&self) -> DspType

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DspType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for DspType

Source§

fn eq(&self, other: &DspType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for DspType

Source§

fn partial_cmp(&self, other: &DspType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for DspType

Source§

impl StructuralPartialEq for DspType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.