FMOD.DSP.getActive C# (CSharp) 메소드

getActive() 공개 메소드

public getActive ( bool &active ) : RESULT
active bool
리턴 RESULT
        public RESULT getActive                 (out bool active)
        {
            return FMOD_DSP_GetActive(rawPtr, out active);
        }
        public RESULT setBypass(bool bypass)

Usage Example

예제 #1
0
        private void CheckIfFilterIsEnabled()
        {
            bool active = false;

            dsphighpass.getActive(ref active);

            if (!highPassFilterEnabled && active)
            {
                dsphighpass.remove();
            }
            if (highPassFilterEnabled && !active)
            {
                _audioSystem.SystemObject.addDSP(dsphighpass, ref dspconnectiontemp);
            }

            active = false;
            dsplowpass.getActive(ref active);

            if (!lowPassFilterEnabled && active)
            {
                dsplowpass.remove();
            }
            if (lowPassFilterEnabled && !active)
            {
                _audioSystem.SystemObject.addDSP(dsplowpass, ref dspconnectiontemp);
            }
        }