private Sound LoadSound(string fileName)
{
if (this.fmodSystem == null)
return new Sound();
if (!Path.HasExtension(fileName))
fileName += ".wav";
Sound sound;
if (!this.loadedSounds.TryGetValue(fileName, out sound))
{
// Load
sound = this.fmodSystem.CreateSound(Path.Combine(this.soundEffectPath, fileName), Mode.Default);
this.loadedSounds.Add(fileName, sound);
}
return sound;
}