Android Question Use tritonus Open Source Java Sound Implementation in B4A

schnurzel

Member
Licensed User
Longtime User
Hello,

I want to use the tritonus open source java sound implementation in a project. Especially the gsm 6.10 codec. Because it's open source, I have the source code in .java files.
Is there a tutorial somewhere that describes how I can integrate this into a B4A project?

thanks in advance
schnurzel
 

agraham

Expert
Licensed User
Longtime User
I don't think it will be easy, and from what I have found on the web tritonus seems to be abandoned back in 2003 - but I may be wrong about that. The download page for sources no longer seems to exist but the precompiled plugins page does so I got the jar for the gsm 6.10 codec and poked around inside. Also needed is a tritonus share jar which is also available on the download page.

Unfortunately It seems to rely on the javax.sound.sampled package which is not implemented on Android. I have read on StackOverflow from other people wanting that package that it is possible to take the package from OpenJDK 7 and either compile the sources or export a jar to overcome that.
 
Upvote 0

schnurzel

Member
Licensed User
Longtime User
Hello, thanks for your suggestions.
I tried to create a library with the help of the tutorial. Everything looks fine, but I don't get the jar file, only the xml.
The console output looks like the output in Video, but no jar file :-(


What am I doing wrong?

consout.PNG
 
Upvote 0

schnurzel

Member
Licensed User
Longtime User
I have now created the library, but the app crashes immediately.
I think I'll give up now and write the app in Android Studio. I thought it would be easier to adapt my existing B4A app than to rewrite it in Android Studio. Nevertheless thanks for your help.
 
Upvote 0
Top