Class Effect<T>
Wraps a Bass Effect such that you don't need to touch the Bass functions to Handle it.
Namespace: System.Dynamic.ExpandoObject
Assembly: ManagedBass.dll
Syntax
public abstract class Effect<T> : INotifyPropertyChanged, IDisposable where T : class, IEffectParameter, new ()
Type Parameters
T
Type of the IEffectParameter |
Properties
IsActive
Checks whether the effect is currently enabled and active.
Declaration
public bool IsActive { get; set; }
Property Value
Boolean
|
Parameters
Effect's Parameters.
Declaration
protected T Parameters { get; }
Property Value
T
|
Priority
Priority of the Effect in DSP chain.
Declaration
public int Priority { get; set; }
Property Value
Int32
|
Methods
ApplyOn(Int32, Int32)
Applies the Effect on a Channel
.
Declaration
public void ApplyOn(int Channel, int Priority = 0)
Parameters
Int32
Channel
The Channel to apply the Effect on. |
Int32
Priority
Priority of the Effect in DSP chain. |
Default()
Sets the effect parameters to default by initialising a new instance of T
.
Declaration
public void Default()
Dispose()
Removes the effect from the Channel and frees allocated memory.
Declaration
public void Dispose()
OnPreset()
Called after applying a Preset to notify that multiple properties have changed.
Declaration
protected void OnPreset()
OnPropertyChanged(String)
Fires the PropertyChanged event.
Declaration
protected virtual void OnPropertyChanged(string PropertyName = null)
Parameters
String
PropertyName
|
Events
PropertyChanged
Fired when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
PropertyChangedEventHandler
|