New sound bug in 1.3.1

I use the example sound program, with system outs enabled.

First I run the program until it writes: Test Complete
Then I start minimizing it, then maximize it, and does this with some seconds delay.

What should happen is: NOTHING
What happens is : the sounds start playing again, or become shut up.

Conclusion: minimizing and maximizing the app, can enable or disable sound nodes in a random manner.

Output follows:

C:\Program Files\j2sdk1.4.1_02\demo\java3d\Sound>java SimpleSounds
****Enable First Sound
********Enable Second Sound
************Enable Third Sound
************Disable Third Sound
************Enable Third Sound
************Disable Third Sound
************Enable Third Sound
************Disable Third Sound
************Enable Third Sound
************Disable Third Sound
************Enable Third Sound
********Disable Second Sound
****Disable First Sound
Test Complete

I use OpenGL, AMD 900MHZ, Soundblaster 1024 Live, 1Gb RAM.

BTW. We have this problem in our app too. So it is not only a problem in the example program.

Please respond to this post, anyone who can reproduce this bug.

Thanks
Nikolai

We have something similar. Whenever we hide our Canvas and show it again, some sound is played once, although setEnable(false) has be executed.

But there are other issues as wel…

This has been registrered as a bug in the bugparade at java.sun.com:

Bug 4874837 - Sound restart again after window minimize and maximize

If you have got a spare vote, please vote for this bug.