Files
play-sound/index.js
T
2014-09-09 00:08:40 +02:00

10 lines
212 B
JavaScript

function Play(opts){
this.child_process = opts.child_process
this.play = function(what){
if (what) this.child_process.exec('cvlc ' + what)
}
}
module.exports = function(opts){
return new Play(opts)
}