no message

This commit is contained in:
Brian Matzon 2002-12-14 12:38:39 +00:00
parent b7de8b69dc
commit 8c0c280a12
1 changed files with 68 additions and 68 deletions

View File

@ -29,7 +29,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
package org.lwjgl.openal; package org.lwjgl.openal;
/** /**
* $Id$ * $Id$
@ -49,13 +49,13 @@ public class ALUT {
initialize(); initialize();
} }
/** Creates a new instance of ALUT */ /** Creates a new instance of ALUT */
public ALUT() { public ALUT() {
} }
/** /**
* Override to provide any initialization code after creation. * Override to provide any initialization code after creation.
*/ */
protected void init() { protected void init() {
} }
@ -66,21 +66,21 @@ public class ALUT {
System.loadLibrary(org.lwjgl.Sys.getLibraryName()); System.loadLibrary(org.lwjgl.Sys.getLibraryName());
} }
/** /**
* Creates the ALUT instance * Creates the ALUT instance
* *
* @throws Exception if a failiure occured in the ALUT creation process * @throws Exception if a failiure occured in the ALUT creation process
*/ */
public void create() throws Exception { public void create() throws Exception {
if (created) { if (created) {
return; return;
} }
if (!nCreate()) { if (!nCreate()) {
throw new Exception("ALUT instance could not be created."); throw new Exception("ALUT instance could not be created.");
} }
created = true; created = true;
init(); init();
} }
/** /**
@ -96,9 +96,9 @@ public class ALUT {
public void destroy() { public void destroy() {
if (!created) { if (!created) {
return; return;
} }
created = false; created = false;
nDestroy(); nDestroy();
} }
/** /**
@ -106,41 +106,41 @@ public class ALUT {
*/ */
protected native void nDestroy(); protected native void nDestroy();
/** /**
* Initializes the OpenAL engine * Initializes the OpenAL engine
* *
* @param args String array of arguments to engine * @param args String array of arguments to engine
*/ */
public native void init(String[] args); public native void init(String[] args);
/** /**
* Loads a wave file into memory * Loads a wave file into memory
* *
* @param file name of file to load (in current working directory) * @param file name of file to load (in current working directory)
* @return ALUTLoadWAVData object containing information regarding wave data loaded * @return ALUTLoadWAVData object containing information regarding wave data loaded
*/ */
public native ALUTLoadWAVData loadWAVFile(String file); public native ALUTLoadWAVData loadWAVFile(String file);
/** /**
* Loads a byte buffer into memory * Loads a byte buffer into memory
* *
* @param buffer buffer address containing file * @param buffer buffer address containing file
* @return ALUTLoadWAVData object containing information regarding wave data loaded * @return ALUTLoadWAVData object containing information regarding wave data loaded
*/ */
public native ALUTLoadWAVData loadWAVMemory(int buffer); public native ALUTLoadWAVData loadWAVMemory(int buffer);
/** /**
* Unloads the specified file from memory * Unloads the specified file from memory
* *
* @param format OpenAL format specifier * @param format OpenAL format specifier
* @param data address of data (pointer) * @param data address of data (pointer)
* @param size size of the data in bytes * @param size size of the data in bytes
* @param freq frequency of the data * @param freq frequency of the data
*/ */
public native void unloadWAV(int format, int data, int size, int freq); public native void unloadWAV(int format, int data, int size, int freq);
/** /**
* Deinitializes the OpenAL engine * Deinitializes the OpenAL engine
*/ */
public native void exit(); public native void exit();
} }