|
From: Elias N. <eli...@us...> - 2004-03-27 14:56:34
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31555/src/java/org/lwjgl/openal Modified Files: AL.java ALC.java Log Message: Added LWJGLErrorException to replace the too general Exception Index: AL.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/AL.java,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- AL.java 27 Mar 2004 13:48:58 -0000 1.19 +++ AL.java 27 Mar 2004 14:42:46 -0000 1.20 @@ -37,6 +37,7 @@ import org.lwjgl.Display; import org.lwjgl.Sys; +import org.lwjgl.LWJGLErrorException; /** * $Id$ @@ -86,7 +87,7 @@ * @param oalPaths Array of strings containing paths to search for OpenAL library * @return true if the AL creation process succeeded */ - protected static native void nCreate(String[] oalPaths) throws OpenALException; + protected static native void nCreate(String[] oalPaths) throws LWJGLErrorException; /** * Native method the destroy the AL @@ -101,17 +102,17 @@ } /** - * Creates an OpenAL instance. Using this constructor will cause OpenAL to - * open the device using supplied device argument, and create a context using the context values - * supplied. - * - * @param deviceArguments Arguments supplied to native device - * @param contextFrequency Frequency for mixing output buffer, in units of Hz (Common values include 11025, 22050, and 44100). - * @param contextRefresh Refresh intervalls, in units of Hz. - * @param contextSynchronized Flag, indicating a synchronous context.* + * Creates an OpenAL instance. Using this constructor will cause OpenAL to + * open the device using supplied device argument, and create a context using the context values + * supplied. + * + * @param deviceArguments Arguments supplied to native device + * @param contextFrequency Frequency for mixing output buffer, in units of Hz (Common values include 11025, 22050, and 44100). + * @param contextRefresh Refresh intervalls, in units of Hz. + * @param contextSynchronized Flag, indicating a synchronous context.* */ public static void create(String deviceArguments, int contextFrequency, int contextRefresh, boolean contextSynchronized) - throws OpenALException { + throws LWJGLErrorException { if (created) { return; @@ -130,7 +131,7 @@ * Creates an OpenAL instance. The empty create will cause OpenAL to * open the default device, and create a context using default values. */ - public static void create() throws OpenALException { + public static void create() throws LWJGLErrorException { if(created) { return; } @@ -151,7 +152,7 @@ jwsLibname = "openal"; break; default: - throw new OpenALException("Unknown platform"); + throw new LWJGLErrorException("Unknown platform"); } String jwsPath = getPathFromJWS(jwsLibname); Index: ALC.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/ALC.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- ALC.java 27 Mar 2004 13:48:58 -0000 1.15 +++ ALC.java 27 Mar 2004 14:42:46 -0000 1.16 @@ -35,6 +35,7 @@ import java.nio.IntBuffer; import org.lwjgl.Sys; +import org.lwjgl.LWJGLErrorException; /** * $Id$ @@ -158,9 +159,9 @@ /** * Creates the ALC instance * - * @throws Exception if a failiure occured in the ALC creation process + * @throws LWJGLErrorException if a failiure occured in the ALC creation process */ - protected static void create() throws OpenALException { + protected static void create() throws LWJGLErrorException { if (created) { return; } |