On Thu, Feb 05, 2009 at 02:02:43PM -0800, Pinball wrote: > I don't think it's up to the "user" to handle the lock. > I wouldn't make a Channel Ptr available either. > I would export a function called > > res_type csoundSetParameter (param_name_type, param_value_type); > > The locking will be handled internally, like this... > > ... csoundSetParameter... > { > LOCK(); > > //... > > UNLOCK(); > } Which would mean a lot of back-to-back UNLOCK();LOCK() pairs if a users want to modifiy not one but a set of parameters, each pair potentially being two system calls. A decent API should provide both the low-level access and let the user be responsible for using it correctly, and some safer higher level calls. Ciao, -- FA Laboratorio di Acustica ed Elettroacustica Parma, Italia O tu, che porte, correndo si ? E guerra e morte ! ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net