C
C#2y ago
pivot

✅ 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
Buddy
Buddy2y ago
Buddy
Buddy2y ago
Are you sure you're not just having an error, and cannot compile it?
pivot
pivotOP2y ago
let me took a look
pivot
pivotOP2y ago
Buddy
Buddy2y ago
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.
pivot
pivotOP2y ago
I have the file there
Buddy
Buddy2y ago
If you're going to send the program to someone, they must also have that exact file in the exact same location.
pivot
pivotOP2y ago
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
ero
ero2y ago
it's not that the music isn't playing, the program literally cannot even run
Buddy
Buddy2y ago
SoundPlayer can only play wav files also.
pivot
pivotOP2y ago
why?
ero
ero2y ago
you have errors?
pivot
pivotOP2y ago
this is what I have in erorrs
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
pivot
pivotOP2y ago
ok, wait i Send it now
pivot
pivotOP2y ago
pivot
pivotOP2y ago
I maked the file .wav and still doesn't work
ero
ero2y ago
i mean are you even reading the error messages
HimmDawg
HimmDawg2y ago
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? 🙂
Accord
Accord2y 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.
Want results from more Discord servers?
Add your server