Csound Csound-dev Csound-tekno Search About

[Cs-dev] csoundReset() and csoundDestroyMessageBuffer()..

Date2015-05-09 19:32
FromRory Walsh
Subject[Cs-dev] csoundReset() and csoundDestroyMessageBuffer()..
I'm having problems getting these two methods to play nicely with each
other. If I don't call csoundDestroyMessageBuffer() before I call
csoundReset() I get a seg fault. If on the other hand I call it before
csoundReset() I get no crash, but my audio disappears. Note that I
don't want to destroy my instance of Csound, I merely want to reset it
so that I can re-compile an instrument. Any thoughts?

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-05-09 19:36
FromRory Walsh
SubjectRe: [Cs-dev] csoundReset() and csoundDestroyMessageBuffer()..
In case it's useful, here is the backtrace when I don't call
csoundDestroyMessageBuffer:

0  0x00007ffff695d157  csoundMessageBufferCallback_1_
/home/rory/sourcecode/cabbageaudio/csound/Top/csound.c  4088
1  0x00007ffff69596f2  csoundMessage
/home/rory/sourcecode/cabbageaudio/csound/Top/csound.c  2282
2  0x00007fffe7df5bf4  csoundModuleCreate
/home/rory/sourcecode/cabbageaudio/csound/InOut/virtual_keyboard/virtual_keyboard.cpp
 422
3  0x00007ffff69554b2  csoundLoadExternal
/home/rory/sourcecode/cabbageaudio/csound/Top/csmodule.c  345
4  0x00007ffff6955977  csoundLoadModules
/home/rory/sourcecode/cabbageaudio/csound/Top/csmodule.c  477
5  0x00007ffff695b93d  csoundReset
/home/rory/sourcecode/cabbageaudio/csound/Top/csound.c  3134
6  0x00000000004fe7f0  Csound::Reset  /usr/local/include/csound/csound.hpp  372
7  0x00000000004ef858  CabbagePluginAudioProcessor::reCompileCsound
/home/rory/sourcecode/cabbageaudio/cabbage/Source/Plugin/CabbagePluginProcessor.cpp
 571

On 9 May 2015 at 19:32, Rory Walsh  wrote:
> I'm having problems getting these two methods to play nicely with each
> other. If I don't call csoundDestroyMessageBuffer() before I call
> csoundReset() I get a seg fault. If on the other hand I call it before
> csoundReset() I get no crash, but my audio disappears. Note that I
> don't want to destroy my instance of Csound, I merely want to reset it
> so that I can re-compile an instrument. Any thoughts?

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-05-09 20:21
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundReset() and csoundDestroyMessageBuffer()..
If you want to recompile, why resetting? If you call CsoundReset() then you may as well recreate the Csound object.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 9 May 2015, at 19:32, Rory Walsh  wrote:
> 
> I'm having problems getting these two methods to play nicely with each
> other. If I don't call csoundDestroyMessageBuffer() before I call
> csoundReset() I get a seg fault. If on the other hand I call it before
> csoundReset() I get no crash, but my audio disappears. Note that I
> don't want to destroy my instance of Csound, I merely want to reset it
> so that I can re-compile an instrument. Any thoughts?
> 
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud 
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-05-09 20:30
FromRory Walsh
SubjectRe: [Cs-dev] csoundReset() and csoundDestroyMessageBuffer()..
Because if I don't get this message and compile fails:

Csound is already started, call csoundReset() before starting again

I'm just doing like Csound tell me.

On 9 May 2015 at 20:21, Victor Lazzarini  wrote:
> If you want to recompile, why resetting? If you call CsoundReset() then you may as well recreate the Csound object.
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 9 May 2015, at 19:32, Rory Walsh  wrote:
>>
>> I'm having problems getting these two methods to play nicely with each
>> other. If I don't call csoundDestroyMessageBuffer() before I call
>> csoundReset() I get a seg fault. If on the other hand I call it before
>> csoundReset() I get no crash, but my audio disappears. Note that I
>> don't want to destroy my instance of Csound, I merely want to reset it
>> so that I can re-compile an instrument. Any thoughts?
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-05-09 21:20
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundReset() and csoundDestroyMessageBuffer()..
that message only happens if you try to call CsoundCompile(). To recompile without stopping, you need either csoundCompileOrc() or csoundCompileCsd().

If you want to stop, then the cleanest thing to do is to reset, destroy and recreate the object. You don't need to do it, because Csound does not need to stop to be recompiled.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 9 May 2015, at 20:30, Rory Walsh  wrote:
> 
> Because if I don't get this message and compile fails:
> 
> Csound is already started, call csoundReset() before starting again
> 
> I'm just doing like Csound tell me.
> 
>> On 9 May 2015 at 20:21, Victor Lazzarini  wrote:
>> If you want to recompile, why resetting? If you call CsoundReset() then you may as well recreate the Csound object.
>> 
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> 
>>> On 9 May 2015, at 19:32, Rory Walsh  wrote:
>>> 
>>> I'm having problems getting these two methods to play nicely with each
>>> other. If I don't call csoundDestroyMessageBuffer() before I call
>>> csoundReset() I get a seg fault. If on the other hand I call it before
>>> csoundReset() I get no crash, but my audio disappears. Note that I
>>> don't want to destroy my instance of Csound, I merely want to reset it
>>> so that I can re-compile an instrument. Any thoughts?
>>> 
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud 
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-05-09 21:33
FromRory Walsh
SubjectRe: [Cs-dev] csoundReset() and csoundDestroyMessageBuffer()..
Thanks Victor. csoundCompileCsd() works fine.

On 9 May 2015 at 21:20, Victor Lazzarini  wrote:
> that message only happens if you try to call CsoundCompile(). To recompile without stopping, you need either csoundCompileOrc() or csoundCompileCsd().
>
> If you want to stop, then the cleanest thing to do is to reset, destroy and recreate the object. You don't need to do it, because Csound does not need to stop to be recompiled.
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 9 May 2015, at 20:30, Rory Walsh  wrote:
>>
>> Because if I don't get this message and compile fails:
>>
>> Csound is already started, call csoundReset() before starting again
>>
>> I'm just doing like Csound tell me.
>>
>>> On 9 May 2015 at 20:21, Victor Lazzarini  wrote:
>>> If you want to recompile, why resetting? If you call CsoundReset() then you may as well recreate the Csound object.
>>>
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>>
>>>> On 9 May 2015, at 19:32, Rory Walsh  wrote:
>>>>
>>>> I'm having problems getting these two methods to play nicely with each
>>>> other. If I don't call csoundDestroyMessageBuffer() before I call
>>>> csoundReset() I get a seg fault. If on the other hand I call it before
>>>> csoundReset() I get no crash, but my audio disappears. Note that I
>>>> don't want to destroy my instance of Csound, I merely want to reset it
>>>> so that I can re-compile an instrument. Any thoughts?
>>>>
>>>> ------------------------------------------------------------------------------
>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net