protected void Set(EfxEffectf param, float value) { AssertNotDisposed(); if (AudioDevice.Capabilities.SupportsEfx) { AudioDeviceInternal.Efx.Effect(ID, param, value); OpenAL.AudioDevice.CheckALError(); } }
protected float Get(EfxEffectf param) { AssertNotDisposed(); if (AudioDevice.Capabilities.SupportsEfx) { float value; AudioDeviceInternal.Efx.GetEffect(ID, param, out value); OpenAL.AudioDevice.CheckALError(); return(value); } return(0); }
/// <summary>This function is used to retrieve floating-point properties from Effect objects.</summary> /// <param name="eid">Effect object identifier.</param> /// <param name="pname">Effect property to retrieve.</param> /// <param name="value">Address where floating-point value will be stored.</param> public void GetEffect(int eid, EfxEffectf pname, out float value) { GetEffect((uint)eid, pname, out value); }
public void GetEffect(uint eid, EfxEffectf pname, out float value) { unsafe { fixed (float* ptr = &value) { Imported_alGetEffectf(eid, pname, ptr); } } }
/// <summary>This function is used to set floating-point properties on Effect objects.</summary> /// <param name="eid">Effect object identifier.</param> /// <param name="param">Effect property to set.</param> /// <param name="value">Floating-point value.</param> public void Effect(int eid, EfxEffectf param, float value) { Imported_alEffectf((uint)eid, param, value); }
internal void Effect(uint effect, EfxEffectf param, float value) { alEffectf(effect, param, value); ALHelper.CheckError("Failed to set " + param + " " + value); }
public unsafe void GetEffect(uint eid, EfxEffectf pname, out float value) { fixed (float* numPtr = &value) this.Imported_alGetEffectf(eid, pname, numPtr); }
public void Effect(uint eid, EfxEffectf param, float value) { this.Imported_alEffectf(eid, param, value); }