GAudio.AGATWrappedSample.PlayScheduled C# (CSharp) Method

PlayScheduled() public method

Plays the sample directly through the specified player. If no AGATPanInfo reference was specified when creating the instance, doesn't do anything.
public PlayScheduled ( GATPlayer player, double dspTime, float gain = 1f ) : void
player GATPlayer
dspTime double
gain float
return void
        public void PlayScheduled( GATPlayer player, double dspTime, float gain = 1f )
        {
            if( panInfo == null )
            {
                #if GAT_DEBUG
                Debug.LogWarning( "No panInfo set!" );
                return;
                #endif
            }
            if( PlayingStatus != Status.ReadyToPlay )
                return;

            PlayingStatus = Status.Scheduled;
            player.PlayDataScheduled( _dataOwner.AudioData, dspTime, panInfo, gain, PlayerWillMixSample );
            _endDspTime = dspTime + MaxDuration;
        }

Same methods

AGATWrappedSample::PlayScheduled ( double dspTime, float gain = 1f ) : void