WPF - Better sound library than MediaPlayer?

Started by
2 comments, last by jbadams 5 years, 10 months ago

Hi there,

I need a simple(ish) MP3 player for my C# WPF project. Sound isn't a major player in my project, but I do need to be able to play a couple of MP3s at the same time (loaded in as Content).

I'm currently using the standard MediaPlayer library just to get a placeholder in there, but it does not meet these requirements:

* Looping - no matter what I try, there's always a split-second break in the sound when it comes to looping (a few of the sounds are short tune loops, and the brief pause when looping really stands out like a sore... ear...!)

* Mixing - at times I need to play a couple of samples simultaneously, but I don't believe MediaPlayer can support this. Having said this I've not tried invoking more than one MediaPlayer class at the same time.

Are there any suggestions? I've browsed through NuGet but I'm surprised I can't find anything really useful.

 

Advertisement

Just to finish this thread off, I found NAudio did the job perfectly :)

Thanks for sharing your solution for future searchers! :)

- Jason Astle-Adams

This topic is closed to new replies.

Advertisement