GAudio.MasterPulseModule.StartPulsing C# (CSharp) Method

StartPulsing() public method

Starts the pulse at the specified stepIndex, and optionally dspTime. Omitting the dspTime parameter will start the pulse immediately.
public StartPulsing ( int stepIndex, double dspTime = 0d ) : void
stepIndex int
dspTime double
return void
        public void StartPulsing( int stepIndex, double dspTime = 0d )
        {
            if( _isPulsing )
                return;

            #if UNITY_EDITOR
            if( Application.isPlaying == false )
                EditorApplication.update += Update;
            #endif
            if( dspTime > AudioSettings.dspTime )
            {
                _pulseInfo.SetStart( dspTime, stepIndex );
            }
            else
            {
                _pulseInfo.SetStart( AudioSettings.dspTime + GATInfo.PulseLatency, stepIndex );
            }

            _isPulsing = true;
        }