onsdag 9 maj 2007

Workaround for the Javasound problem

I found a workaround for the javasound bug. Instead of using the write in a way that makes it block I first check if there is room for the current newly generated piece of sound. If not, a regular "Thread.sleep(1)" is called, which will cause the soundbuffer to be emptied slighly, usually enough to be able to add the generated buffer.

A new version of the JSIDPlay is already up at jac64.com and a new version of the JaC64 emulator will be there in a few days.

Inga kommentarer: