Question Import audio

porkshopp

Active member
Joined
Apr 13, 2019
Messages
26
Location
Sweden
Programming Experience
Beginner
I couldn't find anything, so I have no clue. How do I have an audio file "embedded" in the final build of my program? So that if I were to send it to someone else it would still play the soundfile.
 
In the end, you'll want to use ResourceManager.GetStream() to read the audio file that you have embedded into your assembly. The documentation for the ResourceManager class shows you how to embed the resources if are building everything by hand using the command line. I'm quite sure there are many tutorials on how to embed resources using Visual Studio's GUI. Or very likely, you'll be able to figure it out by simply playing with the GUI. It's not exactly intuitive, but at the same time, it's not rocket science either.
 
Back
Top Bottom