node package manager

play

play.js - play sound files from node.js to your speakers, simple as cake and kid approved!

Installing npm (node package manager)

 curl http://npmjs.org/install.sh | sh

Installing play.js

 npm install play

USAGE

  var play = require('play');

  // play with a callback
  play.sound('./wavs/sfx/intro.wav', function(){

    // these are all "fire and forget", no callback
    play.sound('./wavs/sfx/alarm.wav');
    play.sound('./wavs/sfx/crinkle.wav');
    play.sound('./wavs/sfx/flush.wav');
    play.sound('./wavs/sfx/ding.wav');
    
  });

DEMO

 cd examples
 node demo.js

drum party, now go to JSONloops => http://github.com/marak/JSONloops

Requirements

Mac OS and node.js