Csound Csound-dev Csound-tekno Search About

[Cs-dev] environment variables (SSDIR) and API

Date2010-07-25 09:48
FromAndres Cabrera
Subject[Cs-dev] environment variables (SSDIR) and API
Hi,

I'm having trouble setting the environment variables for sound
directories like SSDIR when using the API. It seems that when Csound
is run through the API it doesn pick these variables up, whether they
are set in the command line, via CsoundSetGlobal env or in the
CsOptions section.

For example, the file:


--env:SSDIR=/home/andres/Desktop


sr = 44100
ksmps = 128
nchnls = 2
0dbfs = 1

instr 4

endin



f   1         0       4096	1  "test.wav" 0 0 0




When run in the terminal finds the file correctly, but not when it is
run via the API.

Any ideas?


Cheers,
Andrés

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo