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.