From 27a4d4d268901ed109690aa7dfa8715def99ed9a Mon Sep 17 00:00:00 2001 From: "sha..RD" Date: Sat, 26 Oct 2013 20:26:02 +0000 Subject: [PATCH] * On Windows, forcefully load our version of OpenAL to prevent any currently installed versions in System32 from overriding it * Increase buffer size used to extract natives from 1 KB to 100 KB to speed up extraction git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10846 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/desktop/com/jme3/system/Natives.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/src/desktop/com/jme3/system/Natives.java b/engine/src/desktop/com/jme3/system/Natives.java index ce3aad430..8a923d311 100644 --- a/engine/src/desktop/com/jme3/system/Natives.java +++ b/engine/src/desktop/com/jme3/system/Natives.java @@ -45,7 +45,7 @@ import java.util.logging.Logger; public final class Natives { private static final Logger logger = Logger.getLogger(Natives.class.getName()); - private static final byte[] buf = new byte[1024]; + private static final byte[] buf = new byte[1024 * 100]; private static File extractionDirOverride = null; private static File extractionDir = null; @@ -258,7 +258,7 @@ public final class Natives { extractNativeLib("windows", "lwjgl64"); } if (needOAL) { - extractNativeLib("windows", "OpenAL64"); + extractNativeLib("windows", "OpenAL64", true, false); } if (needJInput) { extractNativeLib("windows", "jinput-dx8_64"); @@ -273,7 +273,7 @@ public final class Natives { extractNativeLib("windows", "lwjgl"); } if (needOAL) { - extractNativeLib("windows", "OpenAL32"); + extractNativeLib("windows", "OpenAL32", true, false); } if (needJInput) { extractNativeLib("windows", "jinput-dx8");