Csound Csound-dev Csound-tekno Search About

[Cs-dev] csoundCreateThread() clarification

Date2007-09-10 18:18
Frombenjohns
Subject[Cs-dev] csoundCreateThread() clarification
I’ve been following Rory’s Introduction to the API document (and it has been
extremely helpful). I have everything working swell, but I was hoping to get
some further explanation on what is happening in this performance thread
code (from part 4). Specifically, is a separate thread being generated for
every input event? Or a separate thread for every control sample worth
(ksmps)? Or is it just a single thread for the entire performace? I would
like to get it straight in my head so I don’t look goofy explaining it to
other people.

For those without Rory’s document in easy reach, here is a rough summary of
the code:

Main() {
csoundCreate()
csoundCompile()
csoundCreateThread(csThread)

user input
output updated through csoundGetChannelPtr()
// in my code I use csoundScoreEvent() instead
}

csThread() {
Loop: csoundPerformKsmps()
}

-- 
View this message in context: http://www.nabble.com/csoundCreateThread%28%29-clarification-tf4416931.html#a12598178
Sent from the Csound - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound