Example #1
0
        public static CachedSound TryLoadCached(string path)
        {
            CachedSound sound;

            try
            {
                sound = new CachedSound(path);
            }
            catch
            {
                sound = null;
            }

            return(sound);
        }
 public void PlaySound(CachedSound sound)
 {
     AddMixerInput(new CachedSoundSampleProvider(sound));
 }
 public CachedSoundSampleProvider(CachedSound cachedSound)
 {
     this.cachedSound = cachedSound;
 }