Beispiel #1
0
 public Effect(AudioDevice audioDevice, EfxEffectType type) : base(audioDevice)
 {
     if (AudioDevice.Capabilities.SupportsEfx)
     {
         ID = AudioDeviceInternal.Efx.GenEffect();
         AudioDeviceInternal.Efx.BindEffect(ID, type);
         OpenAL.AudioDevice.CheckALError();
     }
 }
Beispiel #2
0
        /// <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);
        }
Beispiel #3
0
 public void BindEffect(uint eid, EfxEffectType type)
 {
   this.Imported_alEffecti(eid, EfxEffecti.EffectType, (int) type);
 }