libpd4unity icon indicating copy to clipboard operation
libpd4unity copied to clipboard

Unity 2018 OSX LibPdFilterRead.cs errors

Open MacroMachines opened this issue 6 years ago • 2 comments

opening the demo project in unity 2018.1.11 on OSX 10.12 Initially got several errors to turn on Player settings / allow unsafe, after doing this, the demo scene project still gets 2 erorrs that appear to be related to 16 bit short:

Assets/LibPdFilterRead.cs(52,10): error CS1502: The best overloaded method match for `LibPDBinding.LibPD.Process(int, short[], short[])' has some invalid arguments

Assets/LibPdFilterRead.cs(52,33): error CS1503: Argument #2' cannot convert System.IntPtr' expression to type `short[]'

MacroMachines avatar Apr 14 '18 07:04 MacroMachines

I know this thread is a little dated now but im having this issue too. Dont suppose this got solved at all did it?

owenitt87 avatar Sep 02 '18 00:09 owenitt87

Nope, I think it's better to use Heavy to compile your pd patch to C# / Unity: https://github.com/enzienaudio/hvcc

patricksebastien avatar Sep 04 '18 15:09 patricksebastien