Plays audio only when window is closed?

Started by crazyhoorse961, January 13, 2017, 11:54:56

Previous topic - Next topic

crazyhoorse961

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

bobjob

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