i've submitted the android version of BeRoXM into the android market as adbased freeware (of course, with a adfree unlocker key) today, see http://www.androidpit.com/en/android....beroxm/BeRoXM or directly on a android smartphone/superphone market://search?q=pname:com.bero.multimedia.beroxm but the CPU should be a fast once, optimal are >= GHz Devices like the Google Nexus One, HTC Desire, Samsung Galaxy S, and so on, at least i've tested it on my Google Nexus One and my Samsung Galaxy S and in some days i will test it on my old T-Mobile G1 and Motorola Milestone(/Droid) with slower CPUs.
It's the first android app in the android market, which've by-freepascal-compiled code in it. The UI codepart is in Java, but the whole DSP audio code stuff is implemented in Object Pascal and is connected/bridged over the JNI Java Native Interface to the Java Codepart. Florian (the FPC father) had submitted already my small arm-linux dllprt0.as RTL patch for android into the FPC SVN, and the JNI.pas is at http://vserver.rosseaux.net/stuff/jni.pas. Important FPC parameters are -CpARMv6 -CfVFPV3. And you do need to write as/ld hook scripts to append additional parameters. For "as": "--march=armv7-a -mfloat-abi=softfp -mfpu=vfp3" and for "ld": "--fix-cortex-a8". And don't try to use the original arm binutils from the andoid NDK, because they are suprer buggy. So please use YAGARTO "GNU ARM toolchain" or a self-built ARM binutils toolchain from the newest binutils trunk revision. The remaining stuff is then simply like in the Android NDK C/C++ samples, with the difference, that the language is pascal
And have fun with it
Bookmarks