✅ trying to run NAudio to run a .wav file while running my code. But it is not working.
Anyone here who is good at that?
11 Replies
BlazeBin - sblijawlrtjr
A tool for sharing your source code with the world!
here's my code
$ask
How to get the best help
Make a post in #help or one of the topic channels under Development.
Avoid asking Can anybody help Has anyone used Why doesn't my code work?
C# is a big area! No one knows they can help unless you tell them about the small area you're trying to work in.
Explain what you are doing, and potentially why for as much context as possible. Avoid screenshots where possible, share code directly in Discord. Type
$code
into chat to learn how to post code.
See https://www.nohello.net and https://dontasktoask.com if you want common help chat room etiquette.Can you at least indicate where in your 500 line file the audio code is?
i think i see the problem
nowhere in your entire program do you use the NAudio library
i see nothing related to loading or playing audio in this code
also, as a side note your use of inheritance is kind of questionable here
Im very new to C# and this was more a school project that was supposed to be very basic
i went further with it
here's the code i worked with
i made sound work
but
something else broke XD the text
BlazeBin - gqhxlficvjdo
A tool for sharing your source code with the world!
Im in my first month of my fullstack .net education
so im very new to all of this
@Pobiega @Jimmacle
the sound thingies is early on in the code
if the sound is working then we don't really need to look at it then
what do you mean by "the text is broken"
its not really broken; the issue im facing now is that while the sound is playing it doesnt print out text
I fixed it!!!!! omg this is so much fun