|
From: Elias N. <eli...@us...> - 2004-03-27 14:00:41
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/eax In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24895/src/java/org/lwjgl/openal/eax Modified Files: EAX.java EAXBufferProperties.java EAXListenerProperties.java Log Message: All classes use Sys.initialize now Index: EAX.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/eax/EAX.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- EAX.java 26 Feb 2004 21:51:57 -0000 1.7 +++ EAX.java 27 Mar 2004 13:48:58 -0000 1.8 @@ -29,7 +29,10 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - package org.lwjgl.openal.eax; + +package org.lwjgl.openal.eax; + +import org.lwjgl.Sys; /** * $Id$ @@ -40,65 +43,57 @@ * @version $Revision$ */ public class EAX { + /** Has the EAX object been created? */ + protected static boolean created; + + static { + Sys.initialize(); + } - /** Has the EAX object been created? */ - protected static boolean created; - - static { - initialize(); - } - - /** - * Static initialization - */ - private static void initialize() { - System.loadLibrary(org.lwjgl.Sys.getLibraryName()); - } - - /** - * Loads the EAX functions - * - * @throws Exception if the EAX extensions couldn't be loaded - */ - public static void create() throws Exception { - if (created) { - return; - } + /** + * Loads the EAX functions + * + * @throws Exception if the EAX extensions couldn't be loaded + */ + public static void create() throws Exception { + if (created) { + return; + } - if (!nCreate()) { - throw new Exception("EAX instance could not be created."); - } - EAX20.init(); - created = true; - } + if (!nCreate()) { + throw new Exception("EAX instance could not be created."); + } + EAX20.init(); + created = true; + } - /** - * Native method to create EAX instance - * - * @return true if the EAX extensions could be found - */ - protected static native boolean nCreate(); + /** + * Native method to create EAX instance + * + * @return true if the EAX extensions could be found + */ + protected static native boolean nCreate(); - /** - * "Destroy" the EAX object - */ - public static void destroy() { - if (!created) { - return; - } - created = false; - nDestroy(); - } + /** + * "Destroy" the EAX object + */ + public static void destroy() { + if (!created) { + return; + } + created = false; + nDestroy(); + } - /** - * Native method the destroy the EAX - */ - protected static native void nDestroy(); - - /** - * @return true if EAX has been created - */ - public static boolean isCreated() { - return created; - } -} \ No newline at end of file + /** + * Native method the destroy the EAX + */ + protected static native void nDestroy(); + + /** + * @return true if EAX has been created + */ + public static boolean isCreated() { + return created; + } +} Index: EAXListenerProperties.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/eax/EAXListenerProperties.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- EAXListenerProperties.java 26 Feb 2004 21:51:57 -0000 1.11 +++ EAXListenerProperties.java 27 Mar 2004 13:48:58 -0000 1.12 @@ -34,6 +34,8 @@ import java.nio.ByteBuffer; import java.nio.ByteOrder; +import org.lwjgl.Sys; + /** * $Id$ * @@ -43,647 +45,647 @@ * @version $Revision$ */ [...1193 lines suppressed...] - /** - * Retrieves the size of the EAXLISTENERPROPERTIES - */ - protected static native int sizeOfEaxListenerProperties(); + /** + * Retrieves the size of the EAXLISTENERPROPERTIES + */ + protected static native int sizeOfEaxListenerProperties(); - /** - * Sets the offsets to the fields - */ - protected static native void assignOffsets(); -} \ No newline at end of file + /** + * Sets the offsets to the fields + */ + protected static native void assignOffsets(); +} Index: EAXBufferProperties.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/eax/EAXBufferProperties.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- EAXBufferProperties.java 26 Feb 2004 21:51:57 -0000 1.12 +++ EAXBufferProperties.java 27 Mar 2004 13:48:58 -0000 1.13 @@ -34,6 +34,8 @@ import java.nio.ByteBuffer; import java.nio.ByteOrder; +import org.lwjgl.Sys; + /** * $Id$ * @@ -45,594 +47,594 @@ * @version $Revision$ */ [...1099 lines suppressed...] + } + + // -------------------------------------------------------------------------- + + /** + * Retrieves the size of the EAXBUFFERPROPERTIES + */ + protected static native int sizeOfEaxBufferProperties(); - /** - * Sets the offsets to the fields - */ - protected static native void assignOffsets(); -} \ No newline at end of file + /** + * Sets the offsets to the fields + */ + protected static native void assignOffsets(); +} |