Top Description Constructors Methods
org.lwjgl.test.openal

public Class OpenALCreationTest

extends Object
Class Inheritance
Imports
java.nio.ByteBuffer, .ByteOrder, .IntBuffer, org.lwjgl.openal.AL, .AL10, org.lwjgl.util.WaveData


Performs a creation test, by creating and destroying OpenAL twice. We cannot inherit from BasicTest since it follows another structure.
Author
Brian Matzon
Version
$Revision$ $Id$

Constructor Summary

AccessConstructor and Description
public
OpenALCreationTest()

Creates an instance of OpenALCreationTest

Method Summary

Modifier and TypeMethod and Description
public void
public void
protected IntBuffer

Returns:

created IntBuffer
createIntBuffer
(int
how many int to contain
size
)

Creates an integer buffer to hold specified ints - strictly a utility method

protected void
execute(String[] args)

Runs the actual test, using supplied arguments

private void
executeAudioTest()

Executes the audio test, which just plays some sound

protected void
exit(int
Error code causing exit
error
)

Exits the test NOW, printing errorcode to stdout

public static void
main(String[]
String array containing arguments
args
)

main entry point

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

OpenALCreationTestback to summary
public OpenALCreationTest()

Creates an instance of OpenALCreationTest

Method Detail

alExitback to summary
public void alExit()
alInitializeback to summary
public void alInitialize()
createIntBufferback to summary
protected IntBuffer createIntBuffer(int size)

Creates an integer buffer to hold specified ints - strictly a utility method

Parameters
size:int

how many int to contain

Returns:IntBuffer

created IntBuffer

executeback to summary
protected void execute(String[] args)

Runs the actual test, using supplied arguments

executeAudioTestback to summary
private void executeAudioTest()

Executes the audio test, which just plays some sound

exitback to summary
protected void exit(int error)

Exits the test NOW, printing errorcode to stdout

Parameters
error:int

Error code causing exit

mainback to summary
public static void main(String[] args)

main entry point

Parameters
args:String[]

String array containing arguments