Csound Csound-dev Csound-tekno Search About

[Cs-dev] API question

Date2005-11-15 14:08
FromVictor Lazzarini
Subject[Cs-dev] API question
The following function seems to have the same effect as compiling
Csound with -s, from a host point of view.

PUBLIC void csoundSetHostImplementedAudioIO(CSOUND *, int state, int bufSize);

As far as I can determine, it would stop the handling of file output 
(-o...) as well
as realtime IO. Is it possible to have another function that allows file 
output,
but stops realtime IO?


Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-11-15 14:53
FromIstvan Varga
SubjectRe: [Cs-dev] API question
Victor Lazzarini wrote:

> The following function seems to have the same effect as compiling
> Csound with -s, from a host point of view.

I assume you meant -n, but it is still not exactly the same,
as csoundSetHostImplementedAudioIO() also affects sound input (-i),
and it allows for suggesting a buffer size (overriding any -b
option) for use with csoundPerformBuffer(). In other words, this
function exists to make it possible to get all built-in sound I/O
handling out of the way.

> PUBLIC void csoundSetHostImplementedAudioIO(CSOUND *, int state, int 
> bufSize);
> 
> As far as I can determine, it would stop the handling of file output 
> (-o...) as well
> as realtime IO. Is it possible to have another function that allows file 
> output,
> but stops realtime IO?

It may be possible (perhaps with a special "state" value), but note
that Csound does not really make a difference between file and real
time output, with the latter being just a special "file".


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net