Csound Csound-dev Csound-tekno Search About

[Cs-dev] FileOpen2() info...

Date2009-10-31 14:52
FromRory Walsh
Subject[Cs-dev] FileOpen2() info...
I'm writing an opcode that needs to read and write from disk. I
started by making calls to sndlib but Victor advised that it's more
efficient to use the file IO functions provided by Csound. I keep
coming across FileOpen2() but I can't seem to find a definition for
it? If anyone has used it before would you mind providing some kind of
example, even if only pseudo code illustrating the steps involved in
writing and reading to disk using the csound wrappers. Much thanks,

Rory.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-10-31 15:15
FromVictor Lazzarini
SubjectRe: [Cs-dev] FileOpen2() info...
Internally, FileOpen2() is called csoundFileOpenWithType() and is  
defined
in Engine/envvar.c

Victor

On 31 Oct 2009, at 14:52, Rory Walsh wrote:

> I'm writing an opcode that needs to read and write from disk. I
> started by making calls to sndlib but Victor advised that it's more
> efficient to use the file IO functions provided by Csound. I keep
> coming across FileOpen2() but I can't seem to find a definition for
> it? If anyone has used it before would you mind providing some kind of
> example, even if only pseudo code illustrating the steps involved in
> writing and reading to disk using the csound wrappers. Much thanks,
>
> Rory.
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart  
> your
> developing skills, take BlackBerry mobile applications to market and  
> stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net