Search found 2342 matches
- Tue Oct 15, 2024 3:10 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 195
- Views: 40967
Re: Google Play New problem : 64bits
Ok it should be 2 I guess for stereo output. The documentation suggested 12 but if 2 works then we should keep that.
- Tue Oct 15, 2024 2:02 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 195
- Views: 40967
Re: Google Play New problem : 64bits
Can you get logs from these crashes?
- Tue Oct 15, 2024 7:35 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 195
- Views: 40967
Re: Google Play New problem : 64bits
Looks good, please send a pull request and I can make any final edits if needed.
- Mon Oct 14, 2024 3:20 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 195
- Views: 40967
Re: Google Play New problem : 64bits
I wish I thought of this sooner. I forgot that ZzDC.dpr is not used for Android builds. Sorry for letting you go through all that trouble.
- Mon Oct 14, 2024 2:45 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 195
- Views: 40967
Re: Google Play New problem : 64bits
Something I don't think we have tried yet. In zgeandroid.pas (not zzdc.dpr), try this uses order:
Code: Select all
uses
cmem,
cthreads,
jni,
ZOpenGL,
- Mon Oct 14, 2024 1:22 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 195
- Views: 40967
Re: Google Play New problem : 64bits
Maybe the makefile from fixes_3_2 can be copied to trunk and build it that way.
What NDK version are you using now?
What NDK version are you using now?
- Mon Oct 14, 2024 7:21 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 195
- Views: 40967
Re: Google Play New problem : 64bits
I think the Fpc devs are developing on Linux and Mac so they rarely test compiler building on Windows. Maybe the "fixes_3_2" branch works better to build? https://github.com/fpc/FPCSource/tree/fixes_3_2 The CheckSynchronize call is only needed if we use the Synchronize method but ZGE does ...
- Sat Oct 12, 2024 1:04 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 195
- Views: 40967
Re: Google Play New problem : 64bits
That version is from 2021 but I see that is the latest released version.
It would be good to test with latest trunk version. If you feel up for it, please check how to build Freepascal from source.
It would be good to test with latest trunk version. If you feel up for it, please check how to build Freepascal from source.
- Fri Oct 11, 2024 2:08 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 195
- Views: 40967
Re: Google Play New problem : 64bits
The log look normal to me.
It seems to boil down to that there is some general problem with Freepascal and threads on Android 64-bit.
Please remind me how you install the Freepascal compiler. Do you build it from source (if so from what branch) or do you use a prebuilt version?
It seems to boil down to that there is some general problem with Freepascal and threads on Android 64-bit.
Please remind me how you install the Freepascal compiler. Do you build it from source (if so from what branch) or do you use a prebuilt version?
- Thu Oct 10, 2024 4:19 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 195
- Views: 40967
Re: Google Play New problem : 64bits
The "2" parameter is the number of local Java handles needed. You can try raising it to 20. The nil in pop seems to be ok, it just indicates that we do not need a result. I'm not sure why simply calling BeginThread will causing things to fail. Do you still have cthreads as first unit in Zz...
- Thu Oct 10, 2024 1:34 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 195
- Views: 40967
Re: Google Play New problem : 64bits
Maybe we should try disabling more specific stuff. What happens if you comment out this line:
env^.CallNonvirtualIntMethodA(env, track, cAudioTrack, mWrite ..
env^.CallNonvirtualIntMethodA(env, track, cAudioTrack, mWrite ..
- Thu Oct 10, 2024 11:56 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 195
- Views: 40967
Re: Google Play New problem : 64bits
Indeed, it seems you should always use the "A" version over the "V" version for 64-bit, I forgot that in the code I posted. While the game is running, the code will stay in the "while not AudioTerminated do" loop. So the "mRelease" part is for cleanup when the...
- Thu Oct 10, 2024 8:18 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 195
- Views: 40967
Re: Google Play New problem : 64bits
Try this change:
Code: Select all
MixAndCopyData(PBuffer, Min(OnePassSize, bufferSizeInBytes));
env^.ReleasePrimitiveArrayCritical(env, buffer, pBuffer, 0);
env^.CallNonvirtualIntMethodV(env, track, cAudioTrack, mWrite, C([buffer, 0, Min(OnePassSize, bufferSizeInBytes)]));
- Wed Oct 09, 2024 4:48 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 195
- Views: 40967
Re: Google Play New problem : 64bits
Try adding this line as first line in C function:
Fillchar(Params, SizeOf(Params), 0);
Fillchar(Params, SizeOf(Params), 0);
- Wed Oct 09, 2024 9:29 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 195
- Views: 40967
Re: Google Play New problem : 64bits
Aha, sorry it should be "VPointer" and "PJValue".
I'm impressed with the solutions that ChatGPT suggest for you, they are better than expected.
I'm impressed with the solutions that ChatGPT suggest for you, they are better than expected.