BrightIdeasSoftware.Audio.FromResource C# (CSharp) Method

FromResource() public static method

Load a sound from a named resource.
To embed a wav file, simple add it to the project, and change "Build Action" to "Embedded Resource".
public static FromResource ( string resourceName ) : Audio
resourceName string The name of the resource including the trailing ".wav"
return Audio
        public static Audio FromResource(string resourceName) {
            Audio sound = new Audio();
            sound.ResourceName = resourceName;
            return sound;
        }