Permalink
Browse files

move audio files to original play.js location + added README about those

  • Loading branch information...
1 parent 4c4b9b0 commit 61973d0da8e32f03b9036ea3f30ca15b76109b6b @japj committed May 11, 2011
View
18 test.js
@@ -4,26 +4,26 @@ var sdlmixer = require("./sdlmixer"),
// play with a callback
-sdlmixer.play("./wavs/alarm.wav", function () {
+sdlmixer.play("./wavs/sfx/alarm.wav", function () {
puts("callback'ed");
});
// these are all "fire and forget", no callback
var i=0;
for (i=0;i<20;i++) {
- sdlmixer.play('./wavs/kick.wav', function() {
+ sdlmixer.play('./wavs/drums/kick.wav', function() {
puts("done");
});
}
-sdlmixer.play('./wavs/phazed.wav');
-sdlmixer.play('./wavs/flush.wav', function() {
- sdlmixer.play('./wavs/kick.wav');
+sdlmixer.play('./wavs/drums/phazed.wav');
+sdlmixer.play('./wavs/sfx/flush.wav', function() {
+ sdlmixer.play('./wavs/drums/snare.wav');
});
-sdlmixer.play('./wavs/ding.wav');
-sdlmixer.play('./wavs/intro.wav', function() {
- sdlmixer.play('./wavs/ding.wav');
+sdlmixer.play('./wavs/sfx/ding.wav');
+sdlmixer.play('./wavs/sfx/intro.wav', function() {
+ sdlmixer.play('./wavs/sfx/ding.wav');
for (i=0;i<20;i++) {
- sdlmixer.play('./wavs/kick.wav', function() {
+ sdlmixer.play('./wavs/drums/kick.wav', function() {
puts("done");
});
}
View
2 wavs/README
@@ -0,0 +1,2 @@
+The audio files in this directory originate from:
+* http://github.com/Marak/play.js
View
0 wavs/kick.wav → wavs/drums/kick.wav
File renamed without changes.
View
0 wavs/phazed.wav → wavs/drums/phazed.wav
File renamed without changes.
View
0 wavs/snare.wav → wavs/drums/snare.wav
File renamed without changes.
View
0 wavs/tick.wav → wavs/drums/tick.wav
File renamed without changes.
View
0 wavs/alarm.wav → wavs/sfx/alarm.wav
File renamed without changes.
View
0 wavs/crinkle.wav → wavs/sfx/crinkle.wav
File renamed without changes.
View
0 wavs/ding.wav → wavs/sfx/ding.wav
File renamed without changes.
View
0 wavs/flush.wav → wavs/sfx/flush.wav
File renamed without changes.
View
0 wavs/intro.wav → wavs/sfx/intro.wav
File renamed without changes.

0 comments on commit 61973d0

Please sign in to comment.