© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
2 replies
MasterAirscrach

❔ 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();
        }
void PlaySound(string sound)
        {
            var player = new System.Media.SoundPlayer(sound);
            player.Play();
        }

.NET Framework 4.8
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Overlapping sounds with mediaplayer?
C#CC# / help
16mo ago
Play sound in .net core Console App
C#CC# / help
3y ago