From 2fa8060b7fd790b3260e65d225a4eca5080683a7 Mon Sep 17 00:00:00 2001 From: Oli Date: Thu, 10 Apr 2008 03:30:59 +0000 Subject: On the way to respect security policy --- (limited to 'common/Resources/crop.csd') diff --git a/common/Resources/crop.csd b/common/Resources/crop.csd index 03b10a5..483e578 100644 --- a/common/Resources/crop.csd +++ b/common/Resources/crop.csd @@ -14,8 +14,9 @@ nchnls=1 Playing temp file ****************************************************************/ instr 1 - -asig diskin "/home/olpc/.sugar/default/tamtam/snds/tempMic.wav", 1 +Spath strget 999 +Stempfile strcat Spath, "/tempMic.wav" +asig diskin Stempfile, 1 gasig dcblock asig endin @@ -45,9 +46,12 @@ kenv adsr 0.01, 0.05, .9, 0.01 adel delay gasig, .005 -ihandle fiopen "/home/olpc/.sugar/default/tamtam/snds/micTemp", 2 +Spath strget 999 +Sfile strcat Spath, "/micTemp.wav" + +ihandle fiopen Sfile, 2 -fout "/home/olpc/.sugar/default/tamtam/snds/micTemp", 2, adel*kenv +fout Sfile, 2, adel*kenv ;out adel*kenv adel = 0 @@ -57,7 +61,9 @@ endin Audio input recording ( closing file ) ****************************************************************/ instr 4 -ficlose "/home/olpc/.sugar/default/tamtam/snds/micTemp" +Spath strget 999 +Sfile strcat Spath, "/micTemp.wav" +ficlose Sfile endin -- cgit v0.9.1