Archive for October, 2010

J2ME: problems with sound

Friday, October 8th, 2010

Recently I am trying to write a J2ME game for Nokia S60 5th edition and Symbian^3 devices, but I face a strange problem with sound: if we have a graphics thread working hard redrawing the screen, then playing sound completely slows it down. This is unexpected because if there is no graphics thread, playing sound in very same way uses about 2-3% of CPU in my Nokia N97.

I wrote a simple J2ME app to ilustrate the problem. Its source can be downloaded from here: SoundTest.tar.gz . Here’s the Java source:

(more…)