BalloonsPop.SoundPlayer.SoundsLoader.CreateSoundMedia C# (CSharp) Method

CreateSoundMedia() public method

Provides System.Media.SoundPlayers loaded with the sound matching the provided string.
public CreateSoundMedia ( string soundName ) : System.Media.SoundPlayer
soundName string
return System.Media.SoundPlayer
        public SoundPlayer CreateSoundMedia(string soundName)
        {
            string path = this.BuildFilePath(soundName);
            var player = new SoundPlayer(path);
            return player;
        }