/// <summary>IMPORTANT: We assume you stopped the instance...</summary> public void SoundEffectManager_ReturnInstance(SafeSoundEffectInstance instance) { // NOTE: We cannot check if the sound is really stopped, because of the way threading works in the XNA sound library (ie: in a dumb way.) Debug.Assert(instance.IsLooped == false); instancePool.Add(instance); }
public void ApplyTo(SafeSoundEffectInstance soundEffectInstance, float mixVolume) { soundEffectInstance.Volume = fade * mixVolume; soundEffectInstance.Pitch = pitch; soundEffectInstance.Pan = pan; }