Hi! How to stop playing previous sound when the next one starts?

void OnTriggerEnter(Collider other)
{
if (other.tag == “Pans”)
{

        int randomSounds = Random.Range(0, 4);
        switch (randomSounds)
        {
            

            case 0:
                SoundaManager.PLaySound("PanHit1");

                break;
            case 1:
                SoundaManager.PLaySound("PanHit2");

                break;
            case 2:
                SoundaManager.PLaySound("PanHit3");

                break;
            case 3:
                SoundaManager.PLaySound("PanHit4");

                break;
            case 4:
                SoundaManager.PLaySound("PanHit5");

                break;

        }

    }

Are you using a audiosource? If so theres a function called AudioSource.Stop(); If you aren’t using an audio source, can you say what you use and maybe show a the script for SoundaManager