Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] ASIOMME.dll?

Date2006-01-27 18:33
FromVictor Lazzarini
SubjectRe: [Cs-dev] ASIOMME.dll?
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.

Victor

>
> 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(cs
> ound)!=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
> 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

Date2006-01-27 19:17
FromIstvan Varga
SubjectRe: [Cs-dev] ASIOMME.dll?
AttachmentsNone  

Date2006-01-27 22:32
FromOeyvind Brandtsegg
Subjectre: [Cs-dev] ASIOMME.dll?
I can confirm this from my usage,
I call: 
csound.Reset()
csound.Cleanup()
when exiting, and the asio device are closed correctly.

Oeyvind




> From: Istvan Varga [istvan_v@fibermail.hu]
> Sent: 2006-01-27 20:17:07 CET
> To: csound-devel@lists.sourceforge.net
> Subject: Re: [Cs-dev] ASIOMME.dll?
> 
> 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
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 

Date2006-01-28 00:51
FromRory Walsh
SubjectRe: [Cs-dev] ASIOMME.dll?
Cheers, I'll go over it again, perhaps I'm not terminating my own thread 
in the correct way. Thanks for the help.

Rory.

Oeyvind Brandtsegg wrote:
> I can confirm this from my usage,
> I call: 
> csound.Reset()
> csound.Cleanup()
> when exiting, and the asio device are closed correctly.
> 
> Oeyvind
> 
> 
> 
> 
> 
>>From: Istvan Varga [istvan_v@fibermail.hu]
>>Sent: 2006-01-27 20:17:07 CET
>>To: csound-devel@lists.sourceforge.net
>>Subject: Re: [Cs-dev] ASIOMME.dll?
>>
>>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
>>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