Hi, i found out that recently someone has ported (partially^Halmost fully) the excellent applewin emulator to linux. I had to make a few small changes to get it to compile (commented with ARNIM comments).
Amazingly it appears to consume very little (5-10%) of the N810 cpu.
However the sound is spluttery. Since cpu isn't pegged, i figured it was either pointer alignment problems, or bad buffer fill calculation. Enabling underrun/overrun debug output showed it was underrunning by 90-560 samples constantly. So i tried doubling the amount of data written in Speaker.cpp. This got rid of the splutters but caused periodic breaks (as something else was countering this change). See the ARNIM comment in Speaker.cpp
It's a beautifully fast emulator, and it's the simplest i've seen in a long time. So I thought i'd share the sources and binary for anyone who wants to take a stab at fixing the sound. Just grep the source dir for my comments and you'll see where I was mucking-about.
Amazingly it appears to consume very little (5-10%) of the N810 cpu.
However the sound is spluttery. Since cpu isn't pegged, i figured it was either pointer alignment problems, or bad buffer fill calculation. Enabling underrun/overrun debug output showed it was underrunning by 90-560 samples constantly. So i tried doubling the amount of data written in Speaker.cpp. This got rid of the splutters but caused periodic breaks (as something else was countering this change). See the ARNIM comment in Speaker.cpp
http://pupnik.de/maemoapple.tgz
It's a beautifully fast emulator, and it's the simplest i've seen in a long time. So I thought i'd share the sources and binary for anyone who wants to take a stab at fixing the sound. Just grep the source dir for my comments and you'll see where I was mucking-about.
(edit) development on applewin is ongoing - newer win-versions here http://applewin.berlios.de/
Cheers,
Last edited by ArnimS; 02-15-2008 at 11:38 AM. Reason: filename correction