Magicolo / uPD

A relatively complete alternative to Unity's audio engine using Pure Data and LibPD.
MIT License
72 stars 6 forks source link

on OS X Yosemite, libpdcsharp.bundle is wrong architecture #2

Open AaronMeyers opened 9 years ago

AaronMeyers commented 9 years ago

When you press play in Unity, the console gets spammed about the library in the bundle being the wrong architecture. Presumably, its an old 32 bit bundle?

Strangely, the examples still play the sounds properly, but I don't really want to deal with all the errors flooding the console every time I press play.

So I downloaded libpd and built a new bundle myself to replace the included one with. The architecture error is gone, but now when I press play I get this error:

EntryPointNotFoundException: libpd_safe_init LibPDBinding.LibPD.ReInit () (at Assets/Magicolo/AudioTools/PureData/LibPD/LibPDNativeMethods.cs:81)

and if I press the play button in the first example, I get NullReferenceExceptions because clearly the lib has failed to initialize properly.

AaronMeyers commented 9 years ago

found this issue over at the libpd4unity repo: https://github.com/patricksebastien/libpd4unity/issues/8

I tried changing line 88 of LibPDNativeMethods.cs from "libpd_safe_init" to "libpd_init" and it seems to work, though I have no idea what problems this could potentially cause.

wmejohnson commented 8 years ago

I recall this solution working for me on yosimete... any luck with el capitan?