ircam-ismm / node-libpd

Node.js bindings for libpd using portaudio as audio backend.
BSD 3-Clause "New" or "Revised" License
19 stars 5 forks source link

node-libpd with nodegui : portaudio error #6

Open AurelienConil opened 1 year ago

AurelienConil commented 1 year ago

Hello

I am trying to get node-libpd working with nodegui ( https://github.com/nodegui/nodegui ), in order to have tiny desktop app running pd patches.

Unfortunately, while my test seems to be fine with nodejs, porting it to nodegui, I get this error message :

>>> Ouput:
Output device name: Built-in Output
DefaultLowOutputLatency: 0.003877551
DefaultHighOutputLatency: 0.014036281
------------------------------------------------
||PaMacCore (AUHAL)|| Error on line 1316: err='-66748', msg=Unknown Error
[Error] Failed to open stream
Error number: -9986
Error message: Internal PortAudio error

I am on mac os Monterey, and probably the problem is a permission system issue. Maybe it is a nodegui issue, or portaudio issue, and not node-libpd but any help is welcome.

Thanks

b-ma commented 1 year ago

Hey, sorry for the (very) late response, I have absolutely no idea of what could happen, did you manage to find the problem?

AurelienConil commented 1 year ago

actually not, I moved to Electron. Nodegui is a custom version of Node, called Qode. There is probably some change there, but I really don't how to find the bug source. Use Qode in debug and look around ? Actually nodegui + libpd would be much more easier that Electron, and actually, it would be a really easy way to have standalone app using pd, with a correct GUI. PyQt can be the option 2.