mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-01-25 18:10:40 +01:00
fix: no more using alutInit or alutExit
This commit is contained in:
parent
926e1dd507
commit
f84e2b5346
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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.");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue