Home:ALL Converter>Audio in Node-webkit using node js and Web Audio API

Audio in Node-webkit using node js and Web Audio API

Ask Time:2014-12-20T01:50:06         Author:Eighty Nine

Json Formatter

I'm working on an application using node-webkit in which I need to play audio. I've successfully played audio using Web Audio API and an XMLHttpRequest, but loading the song is very slow. It takes up to 1 second depending on the format and size.

Is there any way to load a file using the node.js file system, and then pass that data to the Web Audio API to decrease the loading time? Is there an better way to go about this whole thing?

Note: I'm building a native application so I want to play the audio not to stream it to clients. I also need to be able to do processing on the audio, which is why I looked into Web Audio API.

Author:Eighty Nine,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/27571319/audio-in-node-webkit-using-node-js-and-web-audio-api
yy