LWJGL Forum

Programming => OpenAL => Topic started by: Sardtok on August 17, 2006, 00:19:30

Title: Buffered part of sound keeps playing after AL.destroy()
Post by: Sardtok on August 17, 2006, 00:19:30
I was just testing my application and I quit it in the middle of a playing sound.
Now the buffered part of the sound keeps playing.
I destroy AL upon exit, but I don't delete sources and buffers.
Is that the problem, that the sources and buffers still exist, or do I need to stop all the sources, delete sources and buffers and then destroy AL?

Edit: Seems the native jar was still in use after the app was closed too.
Title: Buffered part of sound keeps playing after AL.destroy()
Post by: Matzon on August 17, 2006, 05:23:26
Hmm theoretically, after VM exit nothing should be left.
Title: Buffered part of sound keeps playing after AL.destroy()
Post by: Sardtok on August 17, 2006, 07:02:23
Woah, that's a nasty bug in my application, no System.exit(0) on clean quits,
only error related quitting has System.exit(-1)

Still, should sound hang like that after calling AL.destroy();