public Effect(AudioDevice audioDevice, EfxEffectType type) : base(audioDevice) { if (AudioDevice.Capabilities.SupportsEfx) { ID = AudioDeviceInternal.Efx.GenEffect(); AudioDeviceInternal.Efx.BindEffect(ID, type); OpenAL.AudioDevice.CheckALError(); } }
/// <summary>(Helper) Selects the Effect type used by this Effect handle.</summary> /// <param name="eid">Effect id returned from a successful call to GenEffects.</param> /// <param name="type">Effect type.</param> public void BindEffect(int eid, EfxEffectType type) { Imported_alEffecti((uint)eid, EfxEffecti.EffectType, (int)type); }
public void BindEffect(uint eid, EfxEffectType type) { this.Imported_alEffecti(eid, EfxEffecti.EffectType, (int) type); }