setReverbProperties() public method

public setReverbProperties ( int instance, REVERB_PROPERTIES &prop ) : RESULT
instance int
prop REVERB_PROPERTIES
return RESULT
示例#1
0
        public void SfxSetReverb(Reverb reverb)
        {
            PRESET            preset = new PRESET();
            REVERB_PROPERTIES rp     = preset.OFF();

            switch (reverb)
            {
            case Reverb.Room:
                rp = preset.STONEROOM();
                break;

            case Reverb.Cave:
                rp = preset.CAVE();
                break;

            case Reverb.Arena:
                rp = preset.ARENA();
                break;

            case Reverb.Forest:
                rp = preset.FOREST();
                break;

            case Reverb.Mountains:
                rp = preset.MOUNTAINS();
                break;

            case Reverb.Underwater:
                rp = preset.UNDERWATER();
                break;

            case Reverb.Dungeon:
                rp = preset.STONECORRIDOR();
                break;

            case Reverb.CHall:
                rp = preset.CONCERTHALL();
                break;

            case Reverb.Quarry:
                rp = preset.QUARRY();
                break;

            case Reverb.Plain:
                rp = preset.PLAIN();
                break;
            }

            fSystem.setReverbAmbientProperties(ref rp);
            fSystem.setReverbProperties(ref rp);
        }
示例#2
0
    public void setReverbImmediate(FMOD.REVERB_PROPERTIES targetProps)
    {
        FMOD.RESULT      result    = FMOD.RESULT.OK;
        FMOD.EventSystem evtSystem = getEventSystem();

        if (m_eventSystemWasInit == false)
        {
            init();
        }
        result = evtSystem.setReverbProperties(ref targetProps);
        ERRCHECK(result);
        result = m_system.setReverbProperties(ref targetProps);
        ERRCHECK(result);
    }
 public ReverbProperties this[int instance]
 {
     get
     {
         REVERB_PROPERTIES prop;
         _system.getReverbProperties(instance, out prop).Check();
         return(new ReverbProperties(ref prop));
     }
     set
     {
         var prop = value.ToFmod();
         _system.setReverbProperties(instance, ref prop).Check();
     }
 }