Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Listener3i take ALint instead of ALfloat #427

Merged
merged 1 commit into from
Nov 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/notes/3.2.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ This build includes the following changes:
- Core: Fixed text decoding from buffer with `.position() > 0`.
* Affected all decoders on Java 9+, only UTF-16 on Java 8.
- Core: Fixed the bounds check in `memCopy`. (#414)
- OpenAL: Fixed signature of `alListener3i`. (#427)
- OpenVR: The `pGamePoseArray` parameter of `VRCompositor_WaitGetPoses` is now nullable. (#418)
- OpenVR: Fixed returned type of `VRRenderModels_GetComponentStateForDevicePath`.
- OpenVR: Renamed `VRInput_UncompressSkeletalActionData` to `VRInput_DecompressSkeletalBoneData`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static boolean isAvailable(ALCapabilities caps) {
* @param value3 the third value
*/
@NativeType("ALvoid")
public static void alListener3i(@NativeType("ALenum") int paramName, @NativeType("ALfloat") float value1, @NativeType("ALfloat") float value2, @NativeType("ALfloat") float value3) {
public static void alListener3i(@NativeType("ALenum") int paramName, @NativeType("ALint") int value1, @NativeType("ALint") int value2, @NativeType("ALint") int value3) {
long __functionAddress = AL.getICD().alListener3i;
if (CHECKS) {
check(__functionAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ val AL11 = "AL11".nativeClassAL("AL11") {
"Sets the 3 dimensional integer values of a listener parameter.",

ALenum("paramName", "the parameter to modify"),
ALfloat("value1", "the first value"),
ALfloat("value2", "the second value"),
ALfloat("value3", "the third value")
ALint("value1", "the first value"),
ALint("value2", "the second value"),
ALint("value3", "the third value")
)

ALvoid(
Expand Down Expand Up @@ -156,4 +156,4 @@ val AL11 = "AL11".nativeClassAL("AL11") {

ALfloat("value", "the speed of sound")
)
}
}