Top Description Constructors Methods
org.lwjgl.test.openal

public abstract Class BasicTest

extends Object
Class Inheritance
Known Direct Subclasses
org.lwjgl.test.openal.MovingSoundTest, org.lwjgl.test.openal.PlayTest, org.lwjgl.test.openal.PlayTestMemory, org.lwjgl.test.openal.PositionTest, org.lwjgl.test.openal.SourceLimitTest, org.lwjgl.test.openal.StressTest, org.lwjgl.test.openal.ALCCaptureTest, org.lwjgl.test.openal.ALCTest
Imports
java.nio.FloatBuffer, org.lwjgl.BufferUtils, org.lwjgl.openal.AL, .AL10, .ALC10, org.lwjgl.opengl.DisplayMode

This is a basic test, which contains the most used stuff
Author
Brian Matzon
Version
$Revision$ $Id$

Constructor Summary

AccessConstructor and Description
protected
BasicTest()

Creates an instance of PlayTest

Method Summary

Modifier and TypeMethod and Description
protected void
alExit()

Shutdowns OpenAL

protected FloatBuffer

Returns:

created FloatBuffer
createFloatBuffer
(float[]
to hold
data
)

Creates a float buffer to hold specified float array - strictly a utility method

protected void
exit(int
Error code causing exit
error
)

Exits the test NOW, printing errorcode to stdout

protected void
pause(long
Milliseconds to sleep
time
)

Pauses the invoking thread for specified milliseconds

protected boolean
setDisplayMode()

Sets the display mode for fullscreen mode

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BasicTestback to summary
protected BasicTest()

Creates an instance of PlayTest

Method Detail

alExitback to summary
protected void alExit()

Shutdowns OpenAL

createFloatBufferback to summary
protected FloatBuffer createFloatBuffer(float[] data)

Creates a float buffer to hold specified float array - strictly a utility method

Parameters
data:float[]

to hold

Returns:FloatBuffer

created FloatBuffer

exitback to summary
protected void exit(int error)

Exits the test NOW, printing errorcode to stdout

Parameters
error:int

Error code causing exit

pauseback to summary
protected void pause(long time)

Pauses the invoking thread for specified milliseconds

Parameters
time:long

Milliseconds to sleep

setDisplayModeback to summary
protected boolean setDisplayMode()

Sets the display mode for fullscreen mode