Playing Multiple Sounds in WPF Application

So I’m making a small WPF game, which you can find here by the way ✨, and I come across a confusing and infuriating issue. WPF has two built-in audio players: SoundPlayer and MediaPlayer.

  • SoundPlayer: Can play audio files that are embedded resources in the application, however, this can only play one sound at once.
  • MediaPlayer: Cannot play audio files that are embedded resources in the application, however, this can play multiple sounds at once.

--

--

A humble tech enthusiast and dad writing articles about the tasks I perform whilst working. Hopefully, you find something useful… I never do.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
IT. Delinquent

A humble tech enthusiast and dad writing articles about the tasks I perform whilst working. Hopefully, you find something useful… I never do.