public static void DisposePlayer(this SoundPlayer player, UnmanagedMemoryStream stream) { Utility.DelayAction.Add((int)(stream.WavPlayLength() * 2000), () => Func(player)); }