Esempio n. 1
0
 public ISound Load(string name, bool is3d)
 {
     if (!File.Exists(name)) return null;
     ISound sound = new MdxSound(_audioDevice, name, is3d);
     sound.Volume = _defaultVolume;
     return sound;
 }
Esempio n. 2
0
        public ISound Load(string name, bool is3d)
        {
            if (!File.Exists(name))
            {
                return(null);
            }
            ISound sound = new MdxSound(_audioDevice, name, is3d);

            sound.Volume = _defaultVolume;
            return(sound);
        }