> 
> Hello Yann,
> 
> Thanks a lot for the reply. I did go through the faust2android script, but
> as per my understanding it compiles the Faust objects to be used in the
> Android NDK natively. My existing sound engine is designed completely in
> libPd for Android, and hence I was looking for a script(or any method) to
> compile the faust generated c code. As stated in my post, even if I add the
> puredata.cpp architecture file, libPd refuses to recognise it post
> compilation. Has anyone tried what I am talking about? For example, if I use
> the cyclone library source and compile a freeverb.c into a libfreeverb.so
> external for libpd, it recognises it in app, but when I try using the c code
> generated by faust for pure data, and then compile it separately, it doesn't
> do much. There are no compilation errors, but the object is not recognised
> either. My guess is that it doesn't like the GUIGlue and the METAGlue part
> of the code, and the compilation only takes place after I comment out the
> two portions. I should have probably mentioned that earlier.
> 
> Thanks a lot! Any help on this topic will be massively appreciated :)
> 
> Abesh
> 

UIGlue and MetaGlue are "methods tables" that mimic what happens in C++ in a 
pure C context (or LLVM context actually). They are defined in the CUI.h 
architecture file. When needed UIGlue and MetaGlue structs will have to be 
filled correctly, and given as argument to the respective functions : void 
buildUserInterfacemydsp(mydsp* dsp, UIGlue* interface) and void 
metadatamydsp(MetaGlue* m).

A C/C++ glue code is now also provided in the UIGlue.h architecture file (note 
that this code was part of the CUI.h file and was extracted as a separated file 
quite recently). This code basically "connect" the pure C++ UI and Meta classes 
definition with this UIGlue and MetaGlue system. 

The typical use of this code would be (assuming a given C++ UI object got from 
somewhere) :

UIGlue glue;
buildUIGlue(&glue, UI);
buildUserInterfacemydsp(dsp, &glue);

Note that you can stay in a pure C context and define the content of UIGlue and 
MetaGlue differently.

So if the compilation does not work, your probably need (at least) to include 
the CUI.h architecture file, something like:

#include "faust/gui/CUI.h"

Stéphane


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to