C
C#9mo ago
Fady

❔ Is it possible to have sound/music playing in .Net/c#?

Im working on a basic RPG game and music is a great element when it comes to that kind of thing. so my first question is can you play music/sound through a basic .NET project?
6 Replies
Pobiega
Pobiega9mo ago
yes NAudio is a common way to do this
Fady
Fady9mo ago
Hmmm how would i go about that? i decided to experiment with ChatGPT and it talked about that in Particular. But no matter what i do the sound doesnt run. perhaps my pathing is incorrect
Pobiega
Pobiega9mo ago
google "NAudio" and I'm sure you'll find the github page for that library and there you can find instructions
Fady
Fady9mo ago
I'll try, thanks a lot mate. You're the MVP. Helped me a lot to get through Programmering 1 last semester x)
Murten
Murten9mo ago
If you're making a game you can also try using a framework like monogame which already handles audio for you.
Accord
Accord9mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.