Hello Guest

Buffered part of sound keeps playing after AL.destroy()

  • 2 Replies
  • 9215 Views
Buffered part of sound keeps playing after AL.destroy()
« 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.
igg -- Take me off for great justice?

*

Offline Matzon

  • *****
  • 2242
Buffered part of sound keeps playing after AL.destroy()
« Reply #1 on: August 17, 2006, 05:23:26 »
Hmm theoretically, after VM exit nothing should be left.

Buffered part of sound keeps playing after AL.destroy()
« Reply #2 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();
igg -- Take me off for great justice?