danomatika / ofxPd

(maintained) a Pure Data addon for OpenFrameworks using libpd
Other
201 stars 45 forks source link

missing 0062 compatibilty #5

Closed danomatika closed 13 years ago

danomatika commented 13 years ago

I started this addon with OF 007 in mind but after some calls for built in 0062 compatibility, I agree it would be good to have. I will start on this very soon and separate the code into branches to split the differences if needed.

Here's info from user Seth on the OF forums on getting the current code to build in 0062 for now:

Just wanted to let you know I have it running in 0062. Only minor changes really, and one fix in that the libpd_init_audio ticks_per_buffer need to be set dynamically (not always 1). There's a problem with the simulator on iOS and so ticks_per_buffer > need to be set to 512/ofxPD::getBlocksize();

If you want the code, I can package it up in a day or two. The thing above is the only real change - other than I just commented out the ofLog stuff since that's 007 only and then call process() from testApp's audioRequested().

danomatika commented 13 years ago

Also, you need to add the following CFlags on OSX (perhaps Linux as well):

-DPD -DHAVE_UNISTD_H -DHAVE_LIBDL -DUSEAPI_DUMMY
danomatika commented 13 years ago

Ok, I removed the OF 007 specific stuff, reorganized the dir layout, and added an OF 0062 specific project file. I've tested both in 0062 and 007. Currently, the example app hangs on exit in OF 0062 but seems to work fine otherwise.