Magicolo / uPD

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

Unity 5 x64 compatibility #6

Open ghost opened 7 years ago

ghost commented 7 years ago

It would be nice for this package to work out of the box with unity5 x64. I had to make the following changes for it to work DLL's required: libpdcsharp.dll x64 version built from libpd repo libwinpthread-1.dll x64 version from same libpd repo

LibPDNativeMethods ln 89

/// Init PD
        [DllImport(DllName, EntryPoint="libpd_safe_init", CallingConvention = CallingConvention)]
        private static extern void libpd_init() ;

Changed to:

/// Init PD
        [DllImport(DllName, EntryPoint="libpd_init", CallingConvention = CallingConvention)]
        private static extern void libpd_init() ;

Reference https://stackoverflow.com/questions/40235885/howto-upd-with-unity-5/40245381#40245381