On 13 Apr 2005, at 19:33, wyldbill wrote:
Happened again, and quickly this time....
Thanks, I'll look at this a little later this evening.
Looks like AudioDecoder-0 doesn't know that it's done decoding.
No AudioDecoders subsequent to that have been cleaned up either. I have 0,2,3,4 hanging around at this point (1 did get cleaned up...)
I don't understand what's different that is making this fail for you. Is your PC using hyperthreading?
One idea is to not make these deamons, but manage them directly. If you can go to Java 1.5 (Tiger) there's some great new stuff in java.util.concurrent for pooling and managing threads.
Yes, I was wondering on the way to working this morning why I made each decoder a separate thread, instead of just reusing a single thread. At the time I think I was allowing two decoders to run in parallel for crossfading, although in practice this would never happen now (and I have not implemented crossfading in Softsqueeze yet). If it did use a single decoder thread then I think this bug would cause the audio to stop altogether, instead of spinning the cpu - not much better!
I do use some Java 1.5 UI features in Softsqueeze, but cannot use the new features in the core. In theory Softsqueeze should work on the MS Java 1.3 VM as an applet, and Java 1.4 is needed for OS X support.
Richard
_______________________________________________ Discuss mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/discuss
