csoundDestroy() implies calling csoundReset() first, which in turn implies calling csoundCleanup(). It is csoundCleanup() that closes the audio device (with the rtclose callback), and csoundReset() (more precisely, csoundModuleDestroy() in rtpa.c) calls Pa_Terminate(). The problem reported about ASIOMME.dll may also be caused by a bug in PortAudio or the sound card driver. I do recall using the Csound API with PortAudio/ASIO4ALL output on Win32 (from Python), and the device was closed correctly. On Friday 27 January 2006 19:33, Victor Lazzarini wrote: > Did you do csoundReset() before csoundDestroy()? In fact you > don't need to destroy the csound instance for a new compile, > just use csoundReset(). Generally, there is no need to > destroy it until the program closes. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net