WaveData LWJGL3

I am trying to load the sound into LWJGL 3 according to this lesson ( http://wiki.lwjgl.org/index.php?title=OpenAL_Tutorial_1_-_Single_Static_Source ), but I found that the WaveData class, which was most likely in more old version of LWJGL 2.X, not there. There I can not even compile the code. Is there any other way to load sounds into lwjgl using openAL ...

in LWJGL 2 I used to use the paulscode sound system ( http://www.paulscode.com/forum/index.php?topic=4.0 ), but I'm not sure if it works now in the newer version of LWJGL 3. Thanks for your answer:)

and if there is any tutorial on sound in lwjgl3, could you include the link in your answer, I tried for a long time to use these tutorials, but I failed.

+6
source share
1 answer

The message says:

LWJGL3 does not include WaveData from LWJGL2, but it still works in LWJGL3, just grab it from the LWJGL2 source code and include it in your project.

Therefore, you just need to copy the old WaveData class and use it with LWJGL3, since the loading algorithm and internal OpenAL elements have not been changed.


Recently, LWJGL has included bindings for the STB library. This provides a set of utility functions for various things, such as loading images, downloading fonts, and calculating perlin noise. He also has an Ogg Vorbis Decoder . However, it should be warned that, like OpenGL and GLFW, STB provides only static functions instead of an object-oriented interface. It is also not very optimized.

+2
source

All Articles