Skip to content

Commit

Permalink
Removed 32-bit natives
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed May 15, 2024
1 parent 2a6b0dc commit 623c9fa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,22 +103,27 @@ private OpenALSoundSystem(final int maxSounds, final AudioFormat captureAudioFor

final ALCCapabilities alcCapabilities = ALC.createCapabilities(this.device);
this.checkError("Could not create alcCapabilities");

if (!alcCapabilities.OpenALC11) {
throw new RuntimeException("OpenAL 1.1 is not supported");
throw new RuntimeException("OpenALC 1.1 is not supported");
}
if (!alcCapabilities.ALC_SOFT_output_limiter) {
throw new RuntimeException("ALC_SOFT_output_limiter is not supported");
}
if (captureAudioFormat != null && !alcCapabilities.ALC_SOFT_loopback) {
throw new RuntimeException("ALC_SOFT_loopback is not supported");
}

this.context = ALC10.alcCreateContext(this.device, attributes);
this.checkError("Could not create context");
if (!ALC10.alcMakeContextCurrent(this.context)) {
throw new RuntimeException("Could not make context current");
}

AL.createCapabilities(alcCapabilities);
final ALCapabilities alCapabilities = AL.createCapabilities(alcCapabilities);
this.checkError("Could not create alCapabilities");
if (!alCapabilities.OpenAL11) {
throw new RuntimeException("OpenAL 1.1 is not supported");
}

AL10.alListener3f(AL10.AL_POSITION, 0F, 0F, 0F);
this.checkError("Could not set listener position");
Expand All @@ -145,7 +150,7 @@ private OpenALSoundSystem(final int maxSounds, final AudioFormat captureAudioFor
this.captureBuffer = MemoryUtil.memAlloc((int) this.captureAudioFormat.getSampleRate() * this.captureAudioFormat.getChannels() * this.captureAudioFormat.getSampleSizeInBits() / 8 * 30);
}

System.out.println("Initialized OpenAL " + AL10.alGetString(AL10.AL_VERSION) +" on " + ALC10.alcGetString(this.device, ALC11.ALC_ALL_DEVICES_SPECIFIER));
System.out.println("Initialized OpenAL " + AL10.alGetString(AL10.AL_VERSION) + " on " + ALC10.alcGetString(this.device, ALC11.ALC_ALL_DEVICES_SPECIFIER));
}

@Override
Expand Down
Binary file removed src/main/resources/linux-x86/libbass.so
Binary file not shown.
Binary file removed src/main/resources/win32-x86/bass.dll
Binary file not shown.

0 comments on commit 623c9fa

Please sign in to comment.