How can I play sound in C #?

I'm trying to make a little game. There are about 20 effect sounds, and I combined them into one mp3 file. My question is: is there a way to load an mp3 file into memory, and then play several of its sections at once?

Any help is appreciated, thank you!

+3
source share
1 answer

nAudio is your friend

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

+2
source

Source: https://habr.com/ru/post/1733844/


All Articles