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)); }
public CachedSoundWaveProvider(CachedSound cachedSound) { this.Position = 0; this.cachedSound = cachedSound; }