to get the resource you do something like this
System.Reflection.Assembly objAssembly = System.Reflection.Assembly.GetExecutingAssembly();
objStream = objAssembly.GetManifestResourceStream("My.Namespace.song.mp3");
Presumably song.mp3 has been added correctly and flagged as an Embedded Resource on compilation
Note the Namespace !!
From StackOverflow, I found this :-
string[] myResources = objAssembly.GetManifestResourceNames();
foreach(string aresource in myResources) {
Console.WriteLine(aresource);
}
to print the names of the resources
Ive seen a couple of suggestions where to go from there - either writing the resource from objStream to a temporary file and playing it from disk, or using ?'WaveOut' classes to play it directly (which is what I'd do)
'g'