TooTallNate / node-speaker

Output PCM audio data to the speakers
651 stars 146 forks source link

No sound in NW.js #72

Open jasonmcaffee opened 8 years ago

jasonmcaffee commented 8 years ago

I'm not sure if this is a node-webkit issue or not. I am able to run the sine example without issue as a standalone script on Node v5.1.0. If I put that same code and run it as part of an NW app, I am unable to hear sound. The read function defined in the example does not get called. Sound played through the browser (via Audio or AudioContext) works without issue.

Is there anything prohibitive about using this lib within NW?

wietseva commented 8 years ago

Did you follow these steps as described in the documentation of nwjs ?

npm install -g nw-gyp
cd node_modules/speaker
nw-gyp rebuild --target=0.13.0 --arch=x64