May 19th, 2011

Java, Androids and ALSA

So this is why I hate java: MediaPlaybackService.java. See especially the "reverse hexadecimal" part. Half of the code is trivial functions hiding internal variables, and the other half is working around the fact that Java is just too slow...

Single process eating 100% cpu seems to be enough to make Dream unusable. (Is that normal?) I guess I should use nice extensively... But I wonder why it is so sensitive, Linux scheduler is normally clever enough to deprioritize those.

Oh and tip of the day: if ALSA mysteriously stopped working for you (but /dev/dsp emulation still works ok), you may want to disable "SND_DYNAMIC_MINORS" option... or maybe finally install udev.