How to allow an audio clip to continue playing, without it being stopped by another clip

Hi

I’m working on a game where I need to play an audio clip that signifies the end of the game. I can get this clip to play, but my problem is that if there is an event in the game that causes another audio clip to play and this happens close to the “end of game” event, the other clip seems to stop my “end of game” clip from playing, (it’s not heard at all). If I remove all clips from other sources, my “end of game” clip plays fine.

The code I use to play all clips looks like this:

public void PlaySoundFX()
{
audioSource.clip = specificFXClip;
audioSource.Play();
}

Can anyone help please?

Thank you

Jeff

Use PlayOneShot instead of Play.

Yes, that’s working now.

Thank you Antistone

Jeff