-
-
Notifications
You must be signed in to change notification settings - Fork 647
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(openal) update to 1.23.0 & add new extensions
- ALC_SOFT_loopback_bformat - AL_SOFT_effect_target - AL_SOFT_events Close #854
- Loading branch information
Showing
14 changed files
with
566 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
modules/lwjgl/openal/src/generated/java/org/lwjgl/openal/SOFTEffectTarget.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright LWJGL. All rights reserved. | ||
* License terms: https://www.lwjgl.org/license | ||
* MACHINE GENERATED FILE, DO NOT EDIT | ||
*/ | ||
package org.lwjgl.openal; | ||
|
||
/** | ||
* Native bindings to the <a target="_blank" href="https://openal-soft.org/openal-extensions/SOFT_effect_target.txt">SOFT_effect_target</a> extension. | ||
* | ||
* <p>This extension provides a method to reroute the output of an auxiliary effect slot to the input of another auxiliary effect slot. By default, an effect | ||
* slot's output is added to the main output along side other effect slots and each source's direct path. This makes it impossible to, for example, apply | ||
* an equalizer effect to the output of a chorus effect since the chorus and equalizer effects are processed separately.</p> | ||
* | ||
* <p>Retargeting an effect slot's output to another effect slot allows chaining multiple effects to create results that aren't possible with standard EFX.</p> | ||
*/ | ||
public final class SOFTEffectTarget { | ||
|
||
/** | ||
* Specifies the target effect slot for this effect slot's output. | ||
* | ||
* <p>The rendered output of this effect slot is added to the input of the specified target effect slot, which will be subsequently processed by the target | ||
* effect slot's effect. Specifying {@link EXTEfx#AL_EFFECTSLOT_NULL EFFECTSLOT_NULL} for the ID reverts the effect slot's output back to the main output.</p> | ||
* | ||
* <p>An effect slot that is the target of another effect slot cannot be deleted or an {@link AL10#AL_INVALID_OPERATION INVALID_OPERATION} error will be generated. An effect slot cannot be | ||
* set as a target if it would feed its own input through 0 or more other effect slots, or an {@code AL_INVALID_OPERATION} error will be generated.</p> | ||
*/ | ||
public static final int AL_EFFECTSLOT_TARGET_SOFT = 0x199C; | ||
|
||
private SOFTEffectTarget() {} | ||
|
||
} |
78 changes: 78 additions & 0 deletions
78
modules/lwjgl/openal/src/generated/java/org/lwjgl/openal/SOFTEventProc.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/* | ||
* Copyright LWJGL. All rights reserved. | ||
* License terms: https://www.lwjgl.org/license | ||
* MACHINE GENERATED FILE, DO NOT EDIT | ||
*/ | ||
package org.lwjgl.openal; | ||
|
||
import javax.annotation.*; | ||
|
||
import org.lwjgl.system.*; | ||
|
||
import static org.lwjgl.system.MemoryUtil.*; | ||
|
||
/** | ||
* <h3>Type</h3> | ||
* | ||
* <pre><code> | ||
* void (*{@link #invoke}) ( | ||
* ALenum eventType, | ||
* ALuint object, | ||
* ALuint param, | ||
* ALsizei length, | ||
* ALchar const *message, | ||
* ALvoid *userParam | ||
* )</code></pre> | ||
*/ | ||
public abstract class SOFTEventProc extends Callback implements SOFTEventProcI { | ||
|
||
/** | ||
* Creates a {@code SOFTEventProc} instance from the specified function pointer. | ||
* | ||
* @return the new {@code SOFTEventProc} | ||
*/ | ||
public static SOFTEventProc create(long functionPointer) { | ||
SOFTEventProcI instance = Callback.get(functionPointer); | ||
return instance instanceof SOFTEventProc | ||
? (SOFTEventProc)instance | ||
: new Container(functionPointer, instance); | ||
} | ||
|
||
/** Like {@link #create(long) create}, but returns {@code null} if {@code functionPointer} is {@code NULL}. */ | ||
@Nullable | ||
public static SOFTEventProc createSafe(long functionPointer) { | ||
return functionPointer == NULL ? null : create(functionPointer); | ||
} | ||
|
||
/** Creates a {@code SOFTEventProc} instance that delegates to the specified {@code SOFTEventProcI} instance. */ | ||
public static SOFTEventProc create(SOFTEventProcI instance) { | ||
return instance instanceof SOFTEventProc | ||
? (SOFTEventProc)instance | ||
: new Container(instance.address(), instance); | ||
} | ||
|
||
protected SOFTEventProc() { | ||
super(CIF); | ||
} | ||
|
||
SOFTEventProc(long functionPointer) { | ||
super(functionPointer); | ||
} | ||
|
||
private static final class Container extends SOFTEventProc { | ||
|
||
private final SOFTEventProcI delegate; | ||
|
||
Container(long functionPointer, SOFTEventProcI delegate) { | ||
super(functionPointer); | ||
this.delegate = delegate; | ||
} | ||
|
||
@Override | ||
public void invoke(int eventType, int object, int param, int length, long message, long userParam) { | ||
delegate.invoke(eventType, object, param, length, message, userParam); | ||
} | ||
|
||
} | ||
|
||
} |
55 changes: 55 additions & 0 deletions
55
modules/lwjgl/openal/src/generated/java/org/lwjgl/openal/SOFTEventProcI.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Copyright LWJGL. All rights reserved. | ||
* License terms: https://www.lwjgl.org/license | ||
* MACHINE GENERATED FILE, DO NOT EDIT | ||
*/ | ||
package org.lwjgl.openal; | ||
|
||
import org.lwjgl.system.*; | ||
import org.lwjgl.system.libffi.*; | ||
|
||
import static org.lwjgl.system.APIUtil.*; | ||
import static org.lwjgl.system.MemoryUtil.*; | ||
import static org.lwjgl.system.libffi.LibFFI.*; | ||
|
||
/** | ||
* <h3>Type</h3> | ||
* | ||
* <pre><code> | ||
* void (*{@link #invoke}) ( | ||
* ALenum eventType, | ||
* ALuint object, | ||
* ALuint param, | ||
* ALsizei length, | ||
* ALchar const *message, | ||
* ALvoid *userParam | ||
* )</code></pre> | ||
*/ | ||
@FunctionalInterface | ||
@NativeType("ALEVENTPROCSOFT") | ||
public interface SOFTEventProcI extends CallbackI { | ||
|
||
FFICIF CIF = apiCreateCIF( | ||
FFI_DEFAULT_ABI, | ||
ffi_type_void, | ||
ffi_type_sint32, ffi_type_uint32, ffi_type_uint32, ffi_type_sint32, ffi_type_pointer, ffi_type_pointer | ||
); | ||
|
||
@Override | ||
default FFICIF getCallInterface() { return CIF; } | ||
|
||
@Override | ||
default void callback(long ret, long args) { | ||
invoke( | ||
memGetInt(memGetAddress(args)), | ||
memGetInt(memGetAddress(args + POINTER_SIZE)), | ||
memGetInt(memGetAddress(args + 2 * POINTER_SIZE)), | ||
memGetInt(memGetAddress(args + 3 * POINTER_SIZE)), | ||
memGetAddress(memGetAddress(args + 4 * POINTER_SIZE)), | ||
memGetAddress(memGetAddress(args + 5 * POINTER_SIZE)) | ||
); | ||
} | ||
|
||
void invoke(@NativeType("ALenum") int eventType, @NativeType("ALuint") int object, @NativeType("ALuint") int param, @NativeType("ALsizei") int length, @NativeType("ALchar const *") long message, @NativeType("ALvoid *") long userParam); | ||
|
||
} |
Oops, something went wrong.