How to stop Audio Track in Timeline?

I’ve tried finding the AudioSource which the Timeline creates to play it’s sound (even when there’s a reference in the TimelineAsset) when started through the PlayableDirector’s Play function, without any success. I’ve tried FindObjectsOfType/Resources.FindObjectsOfTpyeAll, neither will find it. Setting the Time.timeScale won’t stop a started AudioTrack from playing through the Timeline. Setting the Timeline’s PlayableGraph’s speed (suggested by a Unity forum employee in another post to “Pause” the timeline) won’t stop it either. Pausing the Timeline won’t either.
Basically I’ve ran out of ways I could find to “Pause” the Timeline in different ways, and all of them would continue to play the AudioClip that has already started from the AudioTrack. I would welcome a way where I can find a reference to the AudioSource that the Timeline made, but so far I didn’t have any luck with it.

@Afthrast Ok well I’ve found one solution around this. It requires that the timeline tracks have an audiosource assigned to it for this to work. After you pause the sounds you normally can with Audiolistner.pause = true you find out what audio is currently being played on the timeline and then you turn the volume to zero (that is the first part of the band-aid fix to stop the current sounds from playing), then after that you use the current time of the timeline playing to figure out the offsets of the clips that were playing, you then reassign those clips to the Audiosources that were silenced and play them again and change their Audiosource.time to what the offset was. In your unpause method you then go through a list of Audiosources you have silenced and revert their volumes back to 1.

Here is some code that I came up with

    private List<AudioSource> audioPlayers;//This is mainly for use in your unpause method

 //Call this method in your pause method
 private void PauseTimelineAudio(PlayableDirector _director)
    {
        audioPlayers.Clear();
        var timelineAsset = _director.playableAsset as TimelineAsset;

        double pauseTime = _director.time;

        foreach (var track in timelineAsset.GetOutputTracks())
        {
            AudioTrack pausedAudioTrack = track as AudioTrack;

            if (pausedAudioTrack == null)
            {
                continue;
            }
            IEnumerable<TimelineClip> trackList = pausedAudioTrack.GetClips();
            foreach (TimelineClip timeClip in trackList)
            {
                if (pauseTime >= timeClip.start && pauseTime <= timeClip.end)
                {
                    

                    foreach (var playableAssetOutput in _director.playableAsset.outputs)
                    {
                        foreach (var clipOutput in timeClip.parentTrack.outputs)
                        {
                            if(playableAssetOutput.sourceObject == clipOutput.sourceObject)
                            {

                                AudioSource audio = _director.GetGenericBinding(clipOutput.sourceObject) as AudioSource;
                                audioPlayers.Add(audio);
                                if(audio == null)
                                {
                                    continue;
                                }
                                audio.volume = 0;
                                AudioPlayableAsset ac = timeClip.asset as AudioPlayableAsset;
                                pausedClip = ac.clip;
                                resumeTime = (pauseTime - timeClip.start);
                                audio.clip = pausedClip;
                                audio.time = (float)resumeTime;
                                audio.Play();

                            }
                            
                        }
                    }
                }

            }
        }
    }



//In your unpause method, paste this to re-volumize the audiosources that were silenced
foreach(AudioSource sound in audioPlayers)
            {
                if(sound != null)
                {
                    sound.volume = 1;
                }

            }