gjtorikian wrote:1. Volume control. This is a two part change--one is to be able to access the volume keys, and the other is to change the sound management to use the Media Volume instead of the current source (which I believe is Ringer--I forget). All games I've ever seen use the Media Volume.
Latest Git version of SDL port uses Media volume, because if you'll specify STREAM_RINGER instead of STREAM_MEDIA to the AudioTrack constructor in Java, as it was before, the sound will play out of the phone speaker instead of the headphones if you'll plug them.
Also if you'll specify
RedefinedKeys="LCTRL LALT NO_REMAP NO_REMAP"
inside AndroidAppSettings.cfg the volume keys will not send SDL keycode to the application - they'll do their default function of changing the volume - it changes Media volume, when the application is running.
So I suppose your patch is kinda late.
gjtorikian wrote:2. The ability to pass the appropriate env variable to allow calling back out to Java classes. In my code, I've got a few methods written in Java, and I have hacked your code in appropriate places to allow me to make calls back out to Java.
Mmm, I don't quite understand what did you change, I suppose you're passing the package name inside the env variable to the C code. It won't hurt to add that change to the SDL code I think.
I've added you to the list of collaborators of the SDL Git - I suppose your name on Github is the same as here. So you can commit it directly into Git, or give me the patch, whatever you'd prefer.
slvn wrote:when compiling with last r5 ndk from cristax.net (android-ndk-r5-crystax-1)
I got first a problem with the compilation of VMCI (lib missing)
VCMI compilation is very much broken, I've added all required steps to the readme inside VCMI dir - you'll
have to create dummy libvcmi.so file inside VCMI dir, so build.sh will compile all other libraries except libapplication.so, then remove the dummy libvcmi.so from VCMI dir and from the obj dir, run "make" inside VCMI dir - it will compile the real libvcmi.so and vcmiserver, then run build.sh again, and hopefully it will link it.
slvn wrote:Then I got this linking problem of linking, for curl :
Thanks, I've added your fix.