fix: no more using alutInit or alutExit

This commit is contained in:
Brian Matzon 2002-12-14 12:44:17 +00:00
parent 926e1dd507
commit f84e2b5346
5 changed files with 8 additions and 18 deletions

View file

@ -133,11 +133,7 @@ public class ALCTest extends BasicTest {
//get an enumerstion value
System.out.println("Value of ALC_MAJOR_VERSION: " + alc.getEnumValue(device, "ALC_MAJOR_VERSION"));
//close context again
alc.destroyContext(context);
//close it
alc.closeDevice(device);
alExit();
}
/**

View file

@ -67,8 +67,8 @@ public class ALUTTest extends BasicTest {
int lastError;
//initialize AL, using ALUT
alut.init(args);
//initialize AL
alInitialize();
//create 1 buffer and 1 source
ByteBuffer buffers = ByteBuffer.allocateDirect(4);
@ -149,8 +149,8 @@ public class ALUTTest extends BasicTest {
exit(lastError);
}
//shutdown using ALUT
alut.exit();
//shutdown
alExit();
}
/**

View file

@ -67,9 +67,7 @@ public class EAXTest extends BasicTest {
//no errorchecking from now on, since our context is gone.
//shutdown
alc.makeContextCurrent(null);
alc.destroyContext(context);
alc.closeDevice(device);
alExit();
System.out.println("test done.");
}

View file

@ -147,9 +147,7 @@ public class PlayTest extends BasicTest {
//no errorchecking from now on, since our context is gone.
//shutdown
alc.makeContextCurrent(null);
alc.destroyContext(context);
alc.closeDevice(device);
alExit();
}
/**

View file

@ -159,9 +159,7 @@ public class PlayTestMemory extends BasicTest {
//no errorchecking from now on, since our context is gone.
//shutdown
alc.makeContextCurrent(null);
alc.destroyContext(context);
alc.closeDevice(device);
alExit();
}
/**