[Cs-dev] ASIOMME.dll?
Date | 2006-01-27 15:25 |
From | Rory Walsh |
Subject | [Cs-dev] ASIOMME.dll? |
Hi everyone, sorry to bother you when I know you're all busy working on the upcoming release but I have a question regarding the CsoundAPI. I am working on a simple application, everything is working fine except that after I make a call to csoundDestroy and then try the thread again I get a message saying ASIOMME.dll still running. My processing thread is attached below. Is calling csoundDestroy() enough to kill an instance of csound and free anything that it was using? Thanks, Rory. (csoudnthread....) { csound = csoundCreate(0); char **cmdl; cmdl = (char **) malloc(sizeof(char*)*(2)); cmdl[0] = "csound"; cmdl[1] = "e:\\csound\\basic.csd"; int result = csoundCompile(csound, 2, cmdl); if(!result) { if((csoundPerformKsmps(csound)!=0)&&(csoundPerformKsmps(csound)!=1))ShowMessage("Error"); else{ while((csoundPerformKsmps(csound) == 0)&&(Form1->PERFCSOUND)) { } csoundCleanup(csound); csoundReset(csound); } /* Destroy Csound. */ csoundDestroy(csound); Form1->CSOUND_ON = false; Form1->PLAY = false; } } ------------------------------------------------------- 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 |
Date | 2006-01-27 16:46 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] ASIOMME.dll? |
Sounds like portaudio is not being closed. Try using -+rtaudio=MME, which uses the MME rt module. Victor At 15:25 27/01/2006, you wrote: >Hi everyone, sorry to bother you when I know you're all busy working on >the upcoming release but I have a question regarding the CsoundAPI. I am >working on a simple application, everything is working fine except that >after I make a call to csoundDestroy and then try the thread again I get a >message saying ASIOMME.dll still running. My processing thread is attached >below. Is calling csoundDestroy() enough to kill an instance of csound and >free anything that it was using? Thanks, >Rory. > >(csoudnthread....) >{ > csound = csoundCreate(0); > char **cmdl; > cmdl = (char **) malloc(sizeof(char*)*(2)); > cmdl[0] = "csound"; > cmdl[1] = "e:\\csound\\basic.csd"; > > int result = csoundCompile(csound, 2, cmdl); > > if(!result) > { >if((csoundPerformKsmps(csound)!=0)&&(csoundPerformKsmps(csound)!=1))ShowMessage("Error"); >else{ > >while((csoundPerformKsmps(csound) == 0)&&(Form1->PERFCSOUND)) > { > > } > csoundCleanup(csound); > csoundReset(csound); > } > /* Destroy Csound. */ > csoundDestroy(csound); > Form1->CSOUND_ON = false; > Form1->PLAY = false; > } >} > > > >------------------------------------------------------- >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 >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- 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 |
Date | 2006-01-27 16:57 |
From | Rory Walsh |
Subject | Re: [Cs-dev] ASIOMME.dll? |
Cheers, that did it. Is there any way I can explicitly close PortAudio when I destroy csound? Victor Lazzarini wrote: > Sounds like portaudio is not being closed. Try using -+rtaudio=MME, > which uses > the MME rt module. > > Victor > > At 15:25 27/01/2006, you wrote: > >> Hi everyone, sorry to bother you when I know you're all busy working >> on the upcoming release but I have a question regarding the CsoundAPI. >> I am working on a simple application, everything is working fine >> except that after I make a call to csoundDestroy and then try the >> thread again I get a message saying ASIOMME.dll still running. My >> processing thread is attached below. Is calling csoundDestroy() enough >> to kill an instance of csound and free anything that it was using? >> Thanks, >> Rory. >> >> (csoudnthread....) >> { >> csound = csoundCreate(0); >> char **cmdl; >> cmdl = (char **) malloc(sizeof(char*)*(2)); >> cmdl[0] = "csound"; >> cmdl[1] = "e:\\csound\\basic.csd"; >> >> int result = csoundCompile(csound, 2, cmdl); >> >> if(!result) >> { >> if((csoundPerformKsmps(csound)!=0)&&(csoundPerformKsmps(csound)!=1))ShowMessage("Error"); >> >> else{ >> >> while((csoundPerformKsmps(csound) == 0)&&(Form1->PERFCSOUND)) >> { >> >> } >> csoundCleanup(csound); >> csoundReset(csound); >> } >> /* Destroy Csound. */ >> csoundDestroy(csound); >> Form1->CSOUND_ON = false; >> Form1->PLAY = false; >> } >> } >> >> >> >> ------------------------------------------------------- >> 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 >> https://lists.sourceforge.net/lists/listinfo/csound-devel > > > Victor Lazzarini > Music Technology Laboratory > Music Department > National University of Ireland, Maynooth > > > ------------------------------------------------------- > 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 > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------- 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 |