Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes when using in electron app #164

Open
blackus3r opened this issue Jul 2, 2021 · 3 comments
Open

Crashes when using in electron app #164

blackus3r opened this issue Jul 2, 2021 · 3 comments

Comments

@blackus3r
Copy link

I'm getting the following error when I use this package in an electron app:

../src/binding.c:48: speaker_open: Assertion napi_get_value_int32(env, args[0], &ao->channels) == napi_ok' failed.`

Node version: 12.8.3
Electron: 12.0.1

I hope that somebody could help me.

@blackus3r
Copy link
Author

The same code runs fine when I build the app for Mac. Currently I'm using the following dependencies

"electron": "^13.1.6",
"electron-builder": "^22.11.7",
"speaker": "^0.5.3",

@blackus3r
Copy link
Author

Problem was solved.
There was a missing Number.parseInt in the node.js code for the options.
This issue can be closed.

@jduhking
Copy link

Do you mind showing me your setup for electron?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants