❔ Play Overlapping Sound

i have a sound function that plays a sound from file, but if i call it while its playing it cuts off the last sound to play the new one?
void PlaySound(string sound)
        {
            var player = new System.Media.SoundPlayer(sound);
            player.Play();
        }

.NET Framework 4.8
Was this page helpful?