contextAttribList.rewind();
// ALC_MAX_AUXILIARY_SENDS won't go above compile-time max. Set to compile-time max if
// greater.
contextAttribList.put(EFX10.ALC_MAX_AUXILIARY_SENDS);
contextAttribList.put(2);
final ALCcontext newContext = ALC10.alcCreateContext(device, contextAttribList);
if (newContext == null) {
throw new Exception("Failed to create context.");
}
final int contextCurResult = ALC10.alcMakeContextCurrent(newContext);
if (contextCurResult == ALC10.ALC_FALSE) {