Skip to content

Commit

Permalink
test12.js
Browse files Browse the repository at this point in the history
  • Loading branch information
xk committed May 16, 2011
1 parent fdf449a commit a89fb1d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test12.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ var Sound= require('./build/default/sound');

var sounds= ['sound.wav', 'sound.m4a', 'sound.aif', 'sound.mp3', 'sound.au', 'Sous La Pluie.mp3'];

var i= 0;
var i= sounds.length;
(function next () {
if (++i < sounds.length) {
if (i--) {
process.stdout.write('\n******************************* '+ sounds[i]+ " ->");
console.log(" -> buffer.length -> "+ Sound.create(Sound.bufferify(sounds[i])).play(next).data.length);
}
Expand All @@ -13,4 +13,5 @@ var i= 0;
}
})();

quitTimer= setTimeout(Date.now, 1e9);
var quitTimer= setTimeout(Date.now, 1e9);

0 comments on commit a89fb1d

Please sign in to comment.