public void PlaySound(string soundName)
{
try
{
if (!this.sounds.ContainsKey(soundName))
{
this.RegisterSound(soundName, this.loader.CreateSoundMedia(soundName));
}
var player = this.sounds[soundName];
player.Play();
}
catch (Exception ex)
{
Logger.Warn("Cannot load media file.", ex);
}
}