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
|
2
|
3
|
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
|
11
|
12
|
13
|
14
|
15
(1) |
16
(21) |
17
(5) |
|
18
(5) |
19
(14) |
20
(5) |
21
|
22
|
23
(2) |
24
(18) |
|
25
(3) |
26
(22) |
27
(8) |
28
(10) |
29
(11) |
30
(9) |
31
|
|
From: Brian M. <ma...@us...> - 2002-08-18 13:57:31
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal In directory usw-pr-cvs1:/tmp/cvs-serv27997 Modified Files: ALUT.java OpenALTest.java Added Files: ALUTLoadWAVData.java Removed Files: ALUTLoadWAVFile.java Log Message: change: ALUTLoadWAVFile -> ALUTLoadWAVData --- NEW FILE: ALUTLoadWAVData.java --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/openal/ALUTLoadWAVData.java /* * Copyright (c) 2002 Light Weight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the name of 'Light Weight Java Game Library' nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * 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; /** * $Id: ALUTLoadWAVData.java,v 1.1 2002/08/18 13:57:28 matzon Exp $ * * This class is used by the alutLoadWAVFile method. Since we * cannot modify values supplied to the method (since JNI is pass by value) * we return this object, which encapsulates the file loaded. Use this class * when unloading using 'alutUnloadWAV'. * * @author Brian Matzon <br...@ma...> * @version $Revision: 1.1 $ */ public class ALUTLoadWAVData { /* format of file */ public final int format; /* pointer to data allocated */ public final int data; /* size of data allocated */ public final int size; /* frequency of sound data */ public final int freq; /* whether or not to loop */ public final boolean loop; /** * Creates an ALUTLoadWAVFile object with specified properties * * @param format OpenAL format specifier * @param data address of data (pointer) * @param size size of the data in bytes * @param freq frequency of the data * @param loop looping indicator for the WAV data */ public ALUTLoadWAVData(int format, int data, int size, int freq, boolean loop) { this.format = format; this.data = data; this.size = size; this.freq = freq; this.loop = loop; } } Index: ALUT.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/openal/ALUT.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/ALUT.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- ALUT.java 15 Aug 2002 15:14:42 -0000 1.3 +++ ALUT.java 18 Aug 2002 13:57:28 -0000 1.4 @@ -66,9 +66,17 @@ * Loads a wave file into memory * * @param file name of file to load (in current working directory) - * @return ALUTLoadWAVFile object containing information regarding file loaded + * @return ALUTLoadWAVData object containing information regarding wave data loaded */ - public native ALUTLoadWAVFile loadWAVFile(String file); + public native ALUTLoadWAVData loadWAVFile(String file); + + /** + * Loads a byte buffer into memory + * + * @param buffer byte buffer containing file + * @return ALUTLoadWAVData object containing information regarding wave data loaded + */ + public native ALUTLoadWAVData loadWAVMemory(byte[] buffer); /** * Unloads the specified file from memory Index: OpenALTest.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/openal/OpenALTest.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/OpenALTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- OpenALTest.java 15 Aug 2002 15:14:42 -0000 1.3 +++ OpenALTest.java 18 Aug 2002 13:57:28 -0000 1.4 @@ -31,6 +31,9 @@ */ package org.lwjgl.openal; + +import java.io.*; +import java.net.*; /** * $Id$ * @@ -72,7 +75,12 @@ al.genSources(1, sources); /* load data */ - ALUTLoadWAVFile file = alut.loadWAVFile("footsteps.wav"); + ALUTLoadWAVData file = alut.loadWAVFile("footsteps.wav"); + //byte[] buffer = getBufferFor("footsteps.wav"); + + //System.out.println("buffersize: " + buffer.length); + + //ALUTLoadWAVData file = alut.loadWAVMemory(buffer); /* copy to buffers */ al.bufferData(buffers[0], file.format, file.data, file.size, file.freq); @@ -107,5 +115,41 @@ /* shutdown */ alut.exit(); + } + + private static byte[] getBufferFor(String filename) { + URL url = null; + + String cwd = System.getProperty("user.dir"); + + try { + url = new URL("file:///" + cwd + "/" + filename); + } catch (MalformedURLException mue) { + mue.printStackTrace(); + } + + System.out.println("Attempting to load: " + url); + + try { + BufferedInputStream bis = new BufferedInputStream(url.openStream()); + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + + int bufferLength = 4096; + byte[] readBuffer = new byte[bufferLength]; + int read = -1; + + while((read = bis.read(readBuffer, 0, bufferLength)) != -1) { + baos.write(readBuffer, 0, read); + } + + //done reading, close + bis.close(); + + return baos.toByteArray(); + } catch (Exception ioe) { + ioe.printStackTrace(); + } + System.exit(-1); + return null; } } --- ALUTLoadWAVFile.java DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/openal/ALUTLoadWAVFile.java |
|
From: Brian M. <ma...@us...> - 2002-08-18 13:56:33
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory usw-pr-cvs1:/tmp/cvs-serv27747 Modified Files: org_lwjgl_openal_ALUT.cpp Log Message: change: ALUTLoadWAVFile -> ALUTLoadWAVData Index: org_lwjgl_openal_ALUT.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_openal_ALUT.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_openal_ALUT.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- org_lwjgl_openal_ALUT.cpp 18 Aug 2002 13:47:56 -0000 1.3 +++ org_lwjgl_openal_ALUT.cpp 18 Aug 2002 13:56:29 -0000 1.4 @@ -117,7 +117,7 @@ alutLoadWAVFile(filename, (ALenum*) &format, (void**) &data, (ALsizei*) &size, (ALsizei*) &freq, (ALboolean*) &loop); /* get class */ - alutLoadWAVFile_class = env->FindClass("org/lwjgl/openal/ALUTLoadWAVFile"); + alutLoadWAVFile_class = env->FindClass("org/lwjgl/openal/ALUTLoadWAVData"); /* get constructor */ methodID = env->GetMethodID(alutLoadWAVFile_class, "<init>", "(IIIIZ)V"); @@ -168,7 +168,7 @@ alutLoadWAVMemory(bufferlocation, (ALenum*) &format, (void**) &data, (ALsizei*) &size, (ALsizei*) &freq, (ALboolean*) &loop); /* get class */ - alutLoadWAVFile_class = env->FindClass("org/lwjgl/openal/ALUTLoadWAVFile"); + alutLoadWAVFile_class = env->FindClass("org/lwjgl/openal/ALUTLoadWAVData"); /* get constructor */ methodID = env->GetMethodID(alutLoadWAVFile_class, "<init>", "(IIIIZ)V"); |
|
From: Brian M. <ma...@us...> - 2002-08-18 13:47:59
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory usw-pr-cvs1:/tmp/cvs-serv25660 Modified Files: org_lwjgl_openal_ALUT.cpp Log Message: fix: memory leak Index: org_lwjgl_openal_ALUT.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_openal_ALUT.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_openal_ALUT.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- org_lwjgl_openal_ALUT.cpp 18 Aug 2002 13:42:14 -0000 1.2 +++ org_lwjgl_openal_ALUT.cpp 18 Aug 2002 13:47:56 -0000 1.3 @@ -124,6 +124,9 @@ /* create object */ alutLoadWAVFile_object = env->NewObject(alutLoadWAVFile_class, methodID, format, (int) data, size, freq, loop); + + /* release chars */ + env->ReleaseStringUTFChars((jstring)filename, 0); return alutLoadWAVFile_object; } |
|
From: Brian M. <ma...@us...> - 2002-08-18 13:42:17
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory usw-pr-cvs1:/tmp/cvs-serv21737 Modified Files: org_lwjgl_openal_ALUT.cpp Log Message: add: loadWAVMemory implemented fix: wrong comments on alutInit Index: org_lwjgl_openal_ALUT.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_openal_ALUT.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_openal_ALUT.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_openal_ALUT.cpp 15 Aug 2002 15:41:37 -0000 1.1 +++ org_lwjgl_openal_ALUT.cpp 18 Aug 2002 13:42:14 -0000 1.2 @@ -44,6 +44,8 @@ /* OpenAL includes */ #include <alut.h> +#include <stdlib.h> + /** * This function initializes OpenAL. * @@ -125,6 +127,7 @@ return alutLoadWAVFile_object; } + /** * This function loads a WAV file into memory from another memory location. * @@ -132,9 +135,61 @@ * ALvoid alutLoadWAVMemory(ALbyte *memory,ALenum *format,ALvoid **data,ALsizei * *size,ALsizei *freq,ALboolean *loop) */ +JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALUT_loadWAVMemory (JNIEnv *env, jobject obj, jbyteArray buffer) { + + /* + * NOTE: Since Java doesn't support modification of supplied + * variables (pass by value). We will return a class that + * holds what is needed to unload the file again. + * The data field contains the offset at whcih the data + * segment begins (ie. a pointer). This will *not* work + * on 64 bit platforms, since we use an jint for this. + */ + + /* actual file info object */ + jobject alutLoadWAVFile_object = NULL; + + /* class type to find */ + jclass alutLoadWAVFile_class = NULL; + + /* method id - will be set to constructor of alutLoadWAVFile */ + jmethodID methodID = NULL; + + /* sound data vars */ + jint format, size, freq; + jboolean loop; + void* data; + ALbyte* bufferlocation = (ALbyte*) (env->GetByteArrayElements(buffer, 0)); + + /* load wave from mem */ + alutLoadWAVMemory(bufferlocation, (ALenum*) &format, (void**) &data, (ALsizei*) &size, (ALsizei*) &freq, (ALboolean*) &loop); + + /* get class */ + alutLoadWAVFile_class = env->FindClass("org/lwjgl/openal/ALUTLoadWAVFile"); + + /* get constructor */ + methodID = env->GetMethodID(alutLoadWAVFile_class, "<init>", "(IIIIZ)V"); + + /* create object */ + alutLoadWAVFile_object = env->NewObject(alutLoadWAVFile_class, methodID, format, (int) data, size, freq, loop); + + /* release bytearray again */ + env->ReleaseByteArrayElements(buffer, (jbyte*) bufferlocation, 0); + + return alutLoadWAVFile_object; +} + +/** + * This function unloads a WAV file from memory and is normally used after copying the data into a buffer + * after an alutLoad* function. + * + * C Specification: + * ALvoid alutUnloadWAV(ALenum format, ALvoid *data, ALsizei size, ALsizei freq) + */ JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALUT_unloadWAV (JNIEnv *env, jobject obj, jint format, jint data, jint size, jint freq) { alutUnloadWAV(format, (void**) data, size, freq); } + /** * This function exits OpenAL. * |
|
From: Brian M. <ma...@us...> - 2002-08-18 13:41:41
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory usw-pr-cvs1:/tmp/cvs-serv21607 Modified Files: org_lwjgl_openal_ALUT.h Log Message: loadWAVMemory implemented Index: org_lwjgl_openal_ALUT.h CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_ALUT.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_ALUT.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- org_lwjgl_openal_ALUT.h 15 Aug 2002 15:10:47 -0000 1.3 +++ org_lwjgl_openal_ALUT.h 18 Aug 2002 13:41:35 -0000 1.4 @@ -57,6 +57,14 @@ /* * Class: org_lwjgl_openal_ALUT + * Method: loadWAVMemory + * Signature: ([B)Lorg/lwjgl/openal/ALUTLoadWAVFile; + */ +JNIEXPORT jobject JNICALL Java_org_lwjgl_openal_ALUT_loadWAVMemory + (JNIEnv *, jobject, jbyteArray); + +/* + * Class: org_lwjgl_openal_ALUT * Method: unloadWAV * Signature: (IIII)V */ |