![]() |
Re: ApkEnv support module development
Quote:
|
Re: ApkEnv support module development
2 Attachment(s)
Quote:
Art-O may ask how do you compile your modules if is not to much to ask :D. Thanks for your contribution. Regards |
Re: ApkEnv support module development
Quote:
Quote:
GLES=2 make But even when compiled with this they currently doesn't work and just SigFault when native_init is called. Does anyone have any ideas why this happens? |
Re: ApkEnv support module development
Quote:
Quote:
SDL has audio output built-in: SDL_OpenAudio() with the right parameters. At some point each game might open an AudioOutput and request a specific format (sample rate, channels, bitrate, buffer size, etc..). The SDL_AudioSpec "callback" then is a simple callback function that will be called by SDL and that should probably call some "native (audio) mixing data" function to fill the buffer. Would be great if you could submit your modules as pull request to apkenv on Github :) |
Re: ApkEnv support module development
Quote:
I have tryed to study this sound output for angry birds but I can't seem to figure out how to get it working. Thus far my code is this: Typedef for nativeMixData: Code:
typedef void (*angrybirds_mixdata_t)(JNIEnv *env, jobject obj, jlong paramLong, jbyteArray paramArrayOfByte, jint paramInt) SOFTFP; Code:
/* Open the audio device */ Code:
void my_audio_callback(void *ud, Uint8 *stream, int len) PS. I do that pull request if I ever get this audio stuff working :) |
Re: ApkEnv support module development
Quote:
|
Re: ApkEnv support module development
Quote:
I started new fork at https://github.com/Art-O/apkenv and made that pull request for this one. Also updated attachment on front page. Next stop Fruit Ninja audio ;) |
Re: ApkEnv support module development
Quote:
Appreciate regards |
Re: ApkEnv support module development
1 Attachment(s)
Hey Art-O how do you locate the Init input and the OpenGL update methods on the decompiled apk.
Here is the screenshot of my decompiled apk. |
Re: ApkEnv support module development
Quote:
Code:
Not supported yet, but found JNI methods: |
All times are GMT. The time now is 23:02. |
vBulletin® Version 3.8.8