[fpc-other] please try to recode this line of code to be compatible with ppcjvm android target

Mgr. Janusz Chmiel mgr.janusz.chmiel at gmail.com
Fri Jan 31 15:44:52 CET 2025


Dear elite developers,
I have created The simple button based radio player for my kind mother. 
She loves it, because it simple. I have one older Android phone with 
Android 4.1.2 Android version.
I have disabled Gogle Play, Google Play services and I have removed 
Google account so no background processes are interfering so much on 
this phone, which has only 512 MB of RAm and has one Core ARM based CPU.
So it is more than ideal phone to experiment with FPCJVm Android JVM 
target and with Android Pascal header units.
Unfortunately, I do not know, how to recode The following line of code 
to be compatible with FPCJVM and with Ther bass.inc library which is 
specially made to be compatible with FPCJVM Android JVM target.
   FChan := BASS_StreamCreateURL(PChar(AStreamURL), 0, BASS_STREAM_BLOCK 
or BASS_STREAM_AUTOFREE, nil, nil);

This code is very important, because if this code is not being presneted 
inside The source code, which call bass.so Android library. It may 
happen, that two or more Internet live streams can play at The same time.

I can not find out how to use it with FPCJVM.
The line
   FChan := BASS_StreamCreateURL(PChar(AStreamURL), 0, BASS_STREAM_BLOCK 
or BASS_STREAM_AUTOFREE, nil, nil);

Have been injected from other module based on Lamw and it uses bass.pas 
library coded for ARM machine code instructions based direct native .so 
library calling from fpc compiler.
Any help will be very welcomed.

Little phones has advantages, that 1,2 A lion battery can be charged 
very fast if it have been discharged. And if battery will be corrupted, 
I can even buy The next one and I can simply replace it. It is much more 
better than while using todays modern phones which have batteryes placed 
inside its corpus and it is not possible to replace them simply.

Thank you very much for your help.



More information about the fpc-other mailing list