SWIG/python array inside structure

The easiest way to do this is to wrap your arrays inside a struct, which can then provide extra methods to meet the “subscriptable” requirements. I’ve put together a small example. It assumes you’re using C++, but the equivalent C version is fairly trivial to construct from this, it just requires a bit of repetition. … Read more

Generating Java interface with SWIG

You can achieve what you’re looking for with SWIG+Java using “Directors”, however it’s not quite as straightforward mapping from the C++ abstract classes onto Java as you might hope. My answer therefore is split into three parts – firstly the simple example of implementing a C++ pure virtual function in Java, secondly an explanation of … Read more

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader

I am currently working on an Android application which streams radio. I use native decoder library which is called aacdecoder. Everything was fine till app gets crash error on some Android devices. It was really annoying. Because app was perfectly plays radio streams almost all devices but Samsung S6 and S6 Edge. Crash report says … Read more

tech