GAudio.SubPulseModule.Update C# (CSharp) Method

Update() protected method

protected Update ( ) : void
return void
        void Update()
        {
            if( !_doSubPulse )
                return;

            while( AudioSettings.dspTime + GATInfo.PulseLatency > _pulseInfo.NextPulseDspTime ) //while because we may have more than one subpulse to trigger in a single frame.
            {
                Pulse ();

                if( _pulseInfo.NextStepIndex == 0 ) //Done
                {
                    _doSubPulse = false;

                    if( _oneShot )
                    {
                        _Bypass = true;
                        _oneShot = false;
                    }
                }

            }
        }