Permalink
Browse files

Comments in test.js

  • Loading branch information...
1 parent 765a8e8 commit b680e1a6ab20571702260d045698fc572a432221 @rumpl committed May 10, 2011
Showing with 6 additions and 4 deletions.
  1. +6 −4 test.js
View
@@ -2,12 +2,14 @@ var Naudio = require('./build/default/naudio').Naudio;
var naudio = new Naudio();
+/*
+// You can plays streams
naudio.play('http://72.13.81.178:8020', function () {
- console.log('first ended');
+ console.log('stream ended');
});
+*/
-setTimeout(function() {
- naudio.play('test.wav', function() { console.log('done')});
-}, 1000);
+// Or odrinary files.
+naudio.play('test.wav', function() { console.log('done')});
console.log('end');

0 comments on commit b680e1a

Please sign in to comment.