public EffectManager(XAudio2 xaudio2, int maxInstances, string soundPath) { this.xaudio2 = xaudio2; this.maxInstances = maxInstances; this.soundPath = soundPath; this.instances = new Dictionary<WaveFormat, List<SourceVoice>>(); }