コード例 #1
0
        private CachedSoundWaveProvider GetSoundFromDictionary(String filename)
        {
            CachedSound output;
            bool        soundExist = soundDictionary.TryGetValue(filename, out output);

            if (!soundExist)
            {
                output = new CachedSound(filename);
                soundDictionary.Add(filename, output);
            }
            return(new CachedSoundWaveProvider(output));
        }
コード例 #2
0
 public CachedSoundWaveProvider(CachedSound cachedSound)
 {
     this.Position    = 0;
     this.cachedSound = cachedSound;
 }