Streampunk / naudiodon

Node.js stream bindings for PortAudio
Apache License 2.0
294 stars 80 forks source link

Duplex audio issue on MacOS #53

Open matheuschagas opened 3 years ago

matheuschagas commented 3 years ago

Hello! I'm using MacOS Catalina, Node v12.19.0 and if I run output or input it works properly, but if I use duplex(input and output together) It crashes and log the following:

step 1step 2step 3step 4.2NAPI error in file ../src/AudioIO.cc on line 109. Error 10: An exception is pending
NAPI pending exception. Engine error code: 0
NAPI error in file ../src/naudiodon.cc on line 31. Error 9: Unknown failure
Assertion failed: (throwStatus == napi_ok), function checkStatus, file ../src/naudiodonUtil.cc, line 54.

Can anyone help me?

Update:

When I pass nothing on outOptions it emit my input sound with glitches

torgeir commented 3 years ago

We saw a similar issue. Updating to the latest node seems to have fixed it.