audio-play
audio-play copied to clipboard
nw.js and audio-play
I have been trying to play an mp3 under nw.js (26.2) in Windows, and haven't had any success. I rebuilt (node-gyp) the speaker module, giving it the correct nw.js version, but still no luck. My code is simple:
const playBeep = require('audio-play'); // npm module to play beep for configuration const loadBeep = require('audio-loader'); . . loadBeep('./solemn.mp3').then(playBeep); // play the beep
But I would like to play multichannel wav files as well. Has it been tested under nw.js, and is there something I should be modifying/adding?