Threads & Classes + other stuff

Ok, i'm not good at java, and i haven't made a good OOP. but i have 8 threads, i play a music file, thread count goes up to 9. i have a method doing this:

publicstaticvoid soundMain()throws IOException, InterruptedException{

System.out.println(Thread.activeCount());

if(Thread.activeCount()<9){

as =new AudioStream(new FileInputStream("1.wav"));

AudioPlayer.player.start(as);

}

if(Thread.activeCount()>9){

off2();

}

}

It goes to the method off(02 when the activecount is >9. the method off()2 is:

publicstaticvoid off2()throws IOException, InterruptedException{

musicfile.close();

System.out.println("musicfile: Should close.");

}

But all this does it plays the musicfile quieter!? Why does it do this? and can someone tell me how i can get a music file to close completely when the threads have increased over 9.

thanks in advance

[1633 byte] By [abshirf2a] at [2007-11-26 19:29:38]
# 1
Anyone?
abshirf2a at 2007-7-9 21:58:13 > top of Java-index,Java Essentials,Java Programming...