Animatroller.MonoExpander.Main.LoadSound C# (CSharp) Method

LoadSound() private method

private LoadSound ( string fileName ) : Sound
fileName string
return Sound
        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;
        }