Skip to content

Commit

Permalink
chdir issue
Browse files Browse the repository at this point in the history
  • Loading branch information
blechdom committed Jan 8, 2013
1 parent 909affd commit 192e330
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
9 changes: 7 additions & 2 deletions public/snd/phrases/50eb98e35bb9b4db01000036.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
"50eb98e35bb9b4db01000036.ogg"
],
"spritemap": {
"Slide": {
"Spring": {
"start": 0,
"end": 0.3929024943310658,
"end": 2.0386167800453516,
"loop": false
},
"DoubleBeep": {
"start": 2.0386167800453516,
"end": 2.482698412698413,
"loop": false
}
}
Expand Down
Binary file modified public/snd/phrases/50eb98e35bb9b4db01000036.mp3
Binary file not shown.
Binary file modified public/snd/phrases/50eb98e35bb9b4db01000036.ogg
Binary file not shown.
7 changes: 2 additions & 5 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,6 @@ io.sockets.on('connection', function (socket) {
catch (err) {
console.log('chdir: ' + err);
}

//process.chdir(spritedir)

var spriteArray = [ AUDIOSPRITE_PATH
, '--rawparts='
, '-o'
Expand All @@ -253,8 +250,8 @@ io.sockets.on('connection', function (socket) {
for(var i=0; i<phraseList.length; i++)
{
var phrase = phraseList[i];
console.log(phraseList[i]);
spriteArray.push(savepublic + "/" + phrase.audio);
console.log(path.resolve(__dirname, "public", phrase.audio));
spriteArray.push(path.resolve(__dirname, "public", phrase.audio));
}

console.log(spriteArray);
Expand Down

0 comments on commit 192e330

Please sign in to comment.