LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: crazyhoorse961 on January 13, 2017, 11:54:56

Title: Plays audio only when window is closed?
Post by: crazyhoorse961 on January 13, 2017, 11:54:56
Hello guys, i'm new to this forum and since 2 days i started trying to use LWJGL
I saw a bit of examples on github and i tried to create something little;
Basically i taked the code from lwjgl/guide or documentation for the display and the OpenALDemo for the audio.
I create an instance of them (in their constructor everything is called).
First the instance of the screen and after the audio one.
Basically the audio doesn't play. But when i close the window it does.
Anyone would know how i can fix it? Thank you
Title: Re: Plays audio only when window is closed?
Post by: bobjob on January 14, 2017, 08:05:33
What OS are you running?

It sounds like you have some sort of loop that maintains focus until the window is closed. A bit more information would be helpful