Konloch Software

LWJGL Audio Example

Published 06/24/2024

  • This is an example of how you can utilize LWJGL audio with a SoundBank.
  • We’re playing WAV files with 3d sound in this demo, and the audio gets farther away with each step.

What Does It Do?

  • WAV sound bank for playing 3D and 2D sounds on demand.

Links

Requirements

  • Java 8 or greater

How To Start

How To Edit

  • Modify the SoundBank.txt file to modify and insert new audio triggers
  • Insert or modify the sounds by replacing the WAV audio files.

Technical Notes

  • For 3D audio to work the sounds must be in MONO format.

SoundBank Explanation

  • For grouped sounds, make them start with the same name, then append _numerical-index to the end, so WALK_1, WALK_2
  • The SoundBank is separated into Name, Path, Volume, Roll-Off, Reference-Distance, Max-Distance

Requirements:

  • Java 1.8 - any Java version after that works fine as well

Sample Audio Credits

Latest Updates