I'm new to C# and pathing files have troubled me for a while.
The file structure to the audio files is as follows:
C:\Users\Username\Documents\Program\Form\WindowsFormApp\Audio Files\name.mp3
My visual studio forms are in:
C:\Users\Username\Documents\Program\Form\WindowsFormApp
I tried referencing audio files by using the following URL:
soundplayer.URL = @"Audio Files\name.mp3";
However, that did not work.
I then placed the folder Audio Files inside practically every other folder. It still did not work.
I tried:
soundplayer.URL = @"..\\Audio Files\name.mp3";
That did not work as well. I cannot simply do the entire path of the audio because it is different on each computer.
How do I path this correctly?
Where