Hi all ....

I need to know how add an audio file into my resources and the code to play it , especially how to get the path to this file :

I'v found this code , but I don't know how to define the audio file path

Dim a As System.Reflection.Assembly = System.Reflection.Assembly.GetExecutingAssembly()

Dim s As System.IO.Stream = a.GetManifestResourceStream("<AssemblyName>.PoliceAlarm.wav") 'Here is my main problem , the path ?!

Dim player As SoundPlayer = New SoundPlayer(s)

player.Play()


Another question , is better to add the sound file into my resources , or it
may cause memory consumption , Any further idea will be appreciated.
Many thanks in advance.