You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(134) |
Sep
(52) |
Oct
(13) |
Nov
(342) |
Dec
(163) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(44) |
Feb
(62) |
Mar
(158) |
Apr
(38) |
May
(70) |
Jun
(58) |
Jul
(104) |
Aug
(207) |
Sep
(83) |
Oct
(122) |
Nov
(23) |
Dec
(49) |
| 2004 |
Jan
(119) |
Feb
(132) |
Mar
(192) |
Apr
(140) |
May
(77) |
Jun
(74) |
Jul
(201) |
Aug
(63) |
Sep
(102) |
Oct
(70) |
Nov
(173) |
Dec
(78) |
| 2005 |
Jan
(174) |
Feb
(197) |
Mar
(105) |
Apr
(59) |
May
(77) |
Jun
(43) |
Jul
(21) |
Aug
(18) |
Sep
(47) |
Oct
(37) |
Nov
(74) |
Dec
(50) |
| 2006 |
Jan
(44) |
Feb
(19) |
Mar
(32) |
Apr
(24) |
May
(31) |
Jun
(55) |
Jul
(138) |
Aug
(28) |
Sep
(12) |
Oct
(41) |
Nov
(58) |
Dec
(24) |
| 2007 |
Jan
(28) |
Feb
(14) |
Mar
(10) |
Apr
(68) |
May
(30) |
Jun
(26) |
Jul
(18) |
Aug
(63) |
Sep
(19) |
Oct
(29) |
Nov
(20) |
Dec
(10) |
| 2008 |
Jan
(38) |
Feb
(7) |
Mar
(37) |
Apr
(120) |
May
(41) |
Jun
(36) |
Jul
(39) |
Aug
(24) |
Sep
(28) |
Oct
(30) |
Nov
(36) |
Dec
(75) |
| 2009 |
Jan
(46) |
Feb
(22) |
Mar
(50) |
Apr
(70) |
May
(134) |
Jun
(105) |
Jul
(75) |
Aug
(34) |
Sep
(38) |
Oct
(34) |
Nov
(19) |
Dec
(20) |
| 2010 |
Jan
(11) |
Feb
(20) |
Mar
(65) |
Apr
(83) |
May
(104) |
Jun
(73) |
Jul
(78) |
Aug
(57) |
Sep
(43) |
Oct
(35) |
Nov
(9) |
Dec
(4) |
| 2011 |
Jan
(21) |
Feb
(11) |
Mar
(18) |
Apr
(10) |
May
(18) |
Jun
(15) |
Jul
(48) |
Aug
(25) |
Sep
(17) |
Oct
(45) |
Nov
(15) |
Dec
(12) |
| 2012 |
Jan
(21) |
Feb
(9) |
Mar
(12) |
Apr
(9) |
May
(9) |
Jun
(5) |
Jul
(1) |
Aug
(10) |
Sep
(12) |
Oct
(1) |
Nov
(28) |
Dec
(5) |
| 2013 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2016 |
Jan
(2) |
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
1
(5) |
2
(5) |
3
(1) |
4
(1) |
5
(5) |
6
|
|
7
(22) |
8
(2) |
9
(10) |
10
(5) |
11
(5) |
12
(1) |
13
|
|
14
|
15
(2) |
16
|
17
|
18
(2) |
19
|
20
|
|
21
(13) |
22
(4) |
23
(3) |
24
(14) |
25
(6) |
26
(26) |
27
(26) |
|
28
(2) |
29
(13) |
30
(17) |
31
(2) |
|
|
|
|
From: <eli...@us...> - 2004-03-08 15:45:33
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6366/src/java/org/lwjgl/openal Modified Files: AL.java Log Message: use vorbis libs from local directory in linux Index: AL.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/AL.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- AL.java 26 Feb 2004 21:51:57 -0000 1.17 +++ AL.java 8 Mar 2004 15:21:10 -0000 1.18 @@ -61,7 +61,7 @@ * String that requests a certain device or device configuration. * If null is specified, the implementation will provide an * implementation specific default. - */ + */ protected static String deviceArguments; /** Frequency for mixing output buffer, in units of Hz. */ @@ -73,40 +73,40 @@ /** Flag, indicating a synchronous context. */ protected static int contextSynchronized = ALC.ALC_FALSE; - /** Have we been created? */ - protected static boolean created; + /** Have we been created? */ + protected static boolean created; - static { - initialize(); - } + static { + initialize(); + } - /** - * Static initialization - */ - private static void initialize() { - System.loadLibrary(org.lwjgl.Sys.getLibraryName()); - } + /** + * Static initialization + */ + private static void initialize() { + System.loadLibrary(org.lwjgl.Sys.getLibraryName()); + } - /** - * Native method to create AL instance - * - * @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; + /** + * Native method to create AL instance + * + * @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; - /** - * Native method the destroy the AL - */ - protected static native void nDestroy(); - - /** - * @return true if AL has been created - */ - public static boolean isCreated() { - return created; - } - + /** + * Native method the destroy the AL + */ + protected static native void nDestroy(); + + /** + * @return true if AL has been created + */ + public static boolean isCreated() { + return created; + } + /** * 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 @@ -119,12 +119,12 @@ */ public static void create(String deviceArguments, int contextFrequency, int contextRefresh, boolean contextSynchronized) throws OpenALException { - - if (created) { - return; - } - - + + if (created) { + return; + } + + AL.deviceArguments = deviceArguments; AL.contextFrequency = contextFrequency; AL.contextRefresh = contextRefresh; @@ -138,55 +138,50 @@ * open the default device, and create a context using default values. */ public static void create() throws OpenALException { - if(created) { - return; - } + if(created) { + return; + } - // need to pass path of possible locations of OAL to native side - String libpath = System.getProperty("java.library.path"); - String seperator = System.getProperty("path.separator"); - String libname; - String jwsLibname; + // need to pass path of possible locations of OAL to native side + String libpath = System.getProperty("java.library.path"); + String seperator = System.getProperty("path.separator"); + String jwsLibname; - // libname is hardcoded atm - this will change in a near future... - switch (Display.getPlatform()) { - case Display.PLATFORM_WGL: - libname = "lwjglaudio.dll"; - jwsLibname = "lwjglaudio"; - break; - case Display.PLATFORM_GLX: - libname = "libopenal.so"; - jwsLibname = "openal"; - break; - case Display.PLATFORM_AGL: - libname = "openal.dylib"; - jwsLibname = "openal"; - break; - default: - throw new OpenALException("Unknown platform"); - } - - String jwsPath = getPathFromJWS(jwsLibname); - if (jwsPath != null) { - libpath += seperator - + jwsPath.substring(0, jwsPath.lastIndexOf(File.separator)); - } + switch (Display.getPlatform()) { + case Display.PLATFORM_WGL: + jwsLibname = "lwjglaudio"; + break; + case Display.PLATFORM_GLX: + jwsLibname = "openal"; + break; + case Display.PLATFORM_AGL: + jwsLibname = "openal"; + break; + default: + throw new OpenALException("Unknown platform"); + } + + String jwsPath = getPathFromJWS(jwsLibname); + if (jwsPath != null) { + libpath += seperator + + jwsPath.substring(0, jwsPath.lastIndexOf(File.separator)); + } - StringTokenizer st = new StringTokenizer(libpath, seperator); + StringTokenizer st = new StringTokenizer(libpath, seperator); - //create needed string array - String[] oalPaths = new String[st.countTokens() + 1]; + //create needed string array + String[] oalPaths = new String[st.countTokens() + 1]; - //build paths - for (int i = 0; i < oalPaths.length - 1; i++) { - oalPaths[i] = st.nextToken() + File.separator + libname; - } + //build paths + for (int i = 0; i < oalPaths.length - 1; i++) { + oalPaths[i] = st.nextToken() + File.separator; + } - //add cwd path - oalPaths[oalPaths.length - 1] = libname; - nCreate(oalPaths); + //add cwd path + oalPaths[oalPaths.length - 1] = ""; + nCreate(oalPaths); - ALC.create(); + ALC.create(); device = ALC.alcOpenDevice(deviceArguments); @@ -202,17 +197,17 @@ ALC.alcMakeContextCurrent(context.context); - created = true; + created = true; } /** * Exit cleanly by calling destroy. */ public static void destroy() { - if(!created) { - return; - } - + if(!created) { + return; + } + ALC.alcDestroyContext(context.context); ALC.alcCloseDevice(device.device); ALC.destroy(); @@ -225,36 +220,36 @@ contextFrequency = -1; contextRefresh = -1; contextSynchronized = ALC.ALC_FALSE; - - created = false; - nDestroy(); + + created = false; + nDestroy(); } - - /** - * Tries to locate OpenAL from the JWS Library path - * This method exists because OpenAL is loaded from native code, and as such - * is exempt from JWS library loading rutines. OpenAL therefore always fails. - * We therefore invoke the protected method of the JWS classloader to see if it can - * locate it. - * - * @param libname Name of library to search for - * @return Absolute path to library if found, otherwise null - */ - private static String getPathFromJWS(String libname) { - try { + + /** + * Tries to locate OpenAL from the JWS Library path + * This method exists because OpenAL is loaded from native code, and as such + * is exempt from JWS library loading rutines. OpenAL therefore always fails. + * We therefore invoke the protected method of the JWS classloader to see if it can + * locate it. + * + * @param libname Name of library to search for + * @return Absolute path to library if found, otherwise null + */ + private static String getPathFromJWS(String libname) { + try { - Sys.log("JWS Classloader looking for: " + libname); - - Object o = AL.class.getClassLoader(); - Class c = o.getClass(); - Method findLibrary = - c.getMethod("findLibrary", new Class[] { String.class }); - Object[] arguments = new Object[] { libname }; - return (String) findLibrary.invoke(o, arguments); + Sys.log("JWS Classloader looking for: " + libname); + + Object o = AL.class.getClassLoader(); + Class c = o.getClass(); + Method findLibrary = + c.getMethod("findLibrary", new Class[] { String.class }); + Object[] arguments = new Object[] { libname }; + return (String) findLibrary.invoke(o, arguments); - } catch (Exception e) { - Sys.log("Failure locating OpenAL using classloader:" + e); - } - return null; - } -} \ No newline at end of file + } catch (Exception e) { + Sys.log("Failure locating OpenAL using classloader:" + e); + } + return null; + } +} |
|
From: <eli...@us...> - 2004-03-08 15:45:33
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6366/src/native/common Modified Files: extal.cpp Log Message: use vorbis libs from local directory in linux Index: extal.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/extal.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- extal.cpp 20 Dec 2003 22:03:24 -0000 1.15 +++ extal.cpp 8 Mar 2004 15:21:10 -0000 1.16 @@ -31,6 +31,8 @@ */ #include <stdio.h> +#include <stdlib.h> +#include <string.h> #include "extal.h" #include "common_tools.h" @@ -125,6 +127,9 @@ HMODULE handleOAL; #endif #ifdef _X11 +void* handleOGG; +void* handleVorbis; +void* handleVorbisFile; void* handleOAL; #endif #ifdef _AGL @@ -188,6 +193,35 @@ } /** + * Concatenate two strings + */ +static char *concatenate(const char *str1, const char *str2) { + int length1 = strlen(str1); + int length2 = strlen(str2); + char *str = (char *)calloc(length1 + length2 + 1, sizeof(char)); + strncpy(str, str1, length1); + strncpy(str + length1, str2, length2 + 1); + return str; +} + +#ifdef _X11 +static void closeVorbisLibs(void) { + if (handleOGG != NULL) { + dlclose(handleOGG); + handleOGG = NULL; + } + if (handleVorbis != NULL) { + dlclose(handleVorbis); + handleVorbis = NULL; + } + if (handleVorbisFile != NULL) { + dlclose(handleVorbisFile); + handleVorbisFile = NULL; + } +} +#endif + +/** * Loads the OpenAL Library */ static bool LoadOpenAL(JNIEnv *env, jobjectArray oalPaths) { @@ -199,13 +233,35 @@ const char *path_str = env->GetStringUTFChars(path, NULL); printfDebug("Testing '%s'\n", path_str); #ifdef _WIN32 - handleOAL = LoadLibrary(path_str); + char *lib_str = concatenate(path_str, "lwjglaudio.dll"); + handleOAL = LoadLibrary(lib_str); + free(lib_str); #endif #ifdef _X11 - handleOAL = dlopen(path_str, RTLD_LAZY); + char *lib_str = concatenate(path_str, "libogg.so.0"); + handleOGG = dlopen(lib_str, RTLD_LAZY); + free(lib_str); + + lib_str = concatenate(path_str, "libvorbis.so.0"); + handleVorbis = dlopen(lib_str, RTLD_LAZY); + free(lib_str); + + lib_str = concatenate(path_str, "libvorbisfile.so.3"); + handleVorbisFile = dlopen(lib_str, RTLD_LAZY); + free(lib_str); + + lib_str = concatenate(path_str, "libopenal.so"); + handleOAL = dlopen(lib_str, RTLD_LAZY); + free(lib_str); + + if (handleOAL == NULL) { + closeVorbisLibs(); + } #endif #ifdef _AGL - handleOAL = NSAddImage(path_str, NSADDIMAGE_OPTION_RETURN_ON_ERROR); + char *lib_str = concatenate(path_str, "openal.dylib"); + handleOAL = NSAddImage(lib_str, NSADDIMAGE_OPTION_RETURN_ON_ERROR); + free(lib_str); #endif if (handleOAL != NULL) { printfDebug("Found OpenAL at '%s'\n", path_str); @@ -225,7 +281,11 @@ FreeLibrary(handleOAL); #endif #ifdef _X11 - dlclose(handleOAL); + if (handleOAL != NULL) { + dlclose(handleOAL); + handleOAL = NULL; + } + closeVorbisLibs(); #endif #ifdef _AGL // Cannot remove the image |