Пример #1
0
 protected void Set(EfxEffectf param, float value)
 {
     AssertNotDisposed();
     if (AudioDevice.Capabilities.SupportsEfx)
     {
         AudioDeviceInternal.Efx.Effect(ID, param, value);
         OpenAL.AudioDevice.CheckALError();
     }
 }
Пример #2
0
 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);
 }
Пример #3
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);
        }
Пример #4
0
 public void GetEffect(uint eid, EfxEffectf pname, out float value)
 {
     unsafe
     {
         fixed (float* ptr = &value)
         {
             Imported_alGetEffectf(eid, pname, ptr);
         }
     }
 }
Пример #5
0
        /// <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);
        }
Пример #6
0
 internal void Effect(uint effect, EfxEffectf param, float value)
 {
     alEffectf(effect, param, value);
     ALHelper.CheckError("Failed to set " + param + " " + value);
 }
Пример #7
0
 public unsafe void GetEffect(uint eid, EfxEffectf pname, out float value)
 {
   fixed (float* numPtr = &value)
     this.Imported_alGetEffectf(eid, pname, numPtr);
 }
Пример #8
0
 public void Effect(uint eid, EfxEffectf param, float value)
 {
   this.Imported_alEffectf(eid, param, value);
 }