✅ My music don't play on my console!
Hello, I maded a program on Visual Studio 2022 in C# on console and I added music and it doesn't play.
20 Replies
Are you sure you're not just having an error, and cannot compile it?
let me took a look
Please note that the audio file won't get embedded within the program and will only work if there's an audio file called music.mp3 in desktop.
I have the file there
If you're going to send the program to someone, they must also have that exact file in the exact same location.
yes, or I can put the file in the same folder with the exe and there only to type the file name with mp3
but my sound is doesn't work
the music isn't playing
it's not that the music isn't playing, the program literally cannot even run
SoundPlayer can only play wav files also.
why?
you have errors?
this is what I have in erorrs
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ok, wait i Send it now
I maked the file .wav and still doesn't work
i mean are you even reading the error messages
Errors are not something your code can ignore and live with it. The programm must be free of syntactic errors. Red squiggly underlined parts in your code are such errors
If you read that error again, there is the error itself, a small description and even a suggestion on how to fix it. So, you know what to do? 🙂
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.