How to add music to Resources
This will show all the background work needed to adding more music or to take away
Adding Music to Resources.resx
Navigate to the resources.resx and click thedropdown to open the Audio section, then simply add all the audio files you want. You will want to make a folder within you're repo that houses all the music like we have in the Resources folder under data. You will right click the files and go to properties as we have on the bottom right and set the name and more importantly the Persistence. If you make the song embeddable it will be directly in the resources.resx which is not good as this takes alot of memory. Instead make it linked at compile so that you can reference its folder location to play instead which is faster and requires far less meory.
Making sure the music is referenceable
Once you have added the music in the resources.resx you can move to the resources.designer.cs and make sure to see the music has been instantiated, if they appear here you are then able to use them in your code!
Last updated