I’m porting an iOS app with its own custom iOS audio engine to Android, so I thought I’d redo the audio engine in Pure Data – that’s simple enough. The PD patch works, so the next step is to get it integrated into the iOS app, and I can worry about Android later. Disclaimer: I have no clue how C++ works in Android apps, much less I have any experience with native Java, so I’m doing this to learn.
Anyway, to avoid madness, I’m trying to stick to C++ as much as I can, so I figured I’d use libpd’s C++ wrapper. However, I can’t find a single decent source of information on how to use the wrapper properly. It’s already awkward enough that I link to
libpd-ios.a and then I manually import the C++ wrapper code. Maybe I’m getting it all wrong and going a little bit native is not such a bad idea – as in, using the ObjC wrapper in iOS and the Java wrapper in Android. I also saw there’s a PureDataNode block somewhere but I’m not sure how complete and fitting that would be.