guo-yu / player

a command line player, supports play mp3 both from uri and local stream.
261 stars 66 forks source link

solve EventEmitter leakage problem #31

Closed theRichu closed 9 years ago

theRichu commented 9 years ago

use once instead of on can solve EventEmitter Leakage problem.

ex) var Player = require('player'); var start_player = new Player(__dirname + '/lib/gunshot.mp3');

setInterval(function(){ start_player.play();

},500)

guo-yu commented 9 years ago

Thanks!