static private Add ( |
||
inst | The SoundEffectInstance | |
Результат | void |
private void PlatformStop(bool immediate) { if (_source) { _source.Stop(); pool.Restore(_source); _source = null; SoundEffectInstancePool.Add(this); } }
/// <summary> /// Stops playing the DynamicSoundEffectInstance. /// If the <paramref name="immediate"/> parameter is false, this call has no effect. /// </summary> /// <remarks> /// Calling this also releases all queued buffers. /// </remarks> /// <param name="immediate">When set to false, this call has no effect.</param> public override void Stop(bool immediate) { AssertNotDisposed(); if (immediate) { DynamicSoundEffectInstanceManager.RemoveInstance(this); PlatformStop(); _state = SoundState.Stopped; SoundEffectInstancePool.Add(this); } }