A New Chicken
A New Chicken

Reputation: 703

How can I play sound in C#?

I'm trying to make a small game. There is about 20 effect sounds and I combined them all into one mp3 file. My question is: Is there a way to load the mp3 file into the memory and then play multiple sections of it at the same time?

Any help is appreciated, thanks you!

Upvotes: 3

Views: 585

Answers (1)

TFD
TFD

Reputation: 24544

nAudio is your friend

You can open the same file (stream or byte array) as many times as you like and set the position you want to play from

Upvotes: 2

Related Questions