Csound Csound-dev Csound-tekno Search About

[Cs-dev] csoundGetSpout() question...

Date2012-03-16 16:58
FromRory Walsh
Subject[Cs-dev] csoundGetSpout() question...
My frontend software is crashing erratically whenever I don't have an
'outs' opcode in my code. csoundGetSpout() returns the address of the
Csound audio output buffer. What address does this function return if
no instruments are outputting anything? Or is there always a valid
buffer for every instrument, even if they aren't outputting audio? If
I spent more time looking at the internal workings of Csound I'd know
this!

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-03-16 18:00
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundGetSpout() question...
I have not checked this, but my impression is that once the orchestra is compiled, spin and spout are allocated (with size ksmps*nchnls).
Check if the pointer is not NULL. 

Victor
On 16 Mar 2012, at 16:58, Rory Walsh wrote:

> My frontend software is crashing erratically whenever I don't have an
> 'outs' opcode in my code. csoundGetSpout() returns the address of the
> Csound audio output buffer. What address does this function return if
> no instruments are outputting anything? Or is there always a valid
> buffer for every instrument, even if they aren't outputting audio? If
> I spent more time looking at the internal workings of Csound I'd know
> this!
> 
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here 
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-03-16 18:54
FromRory Walsh
SubjectRe: [Cs-dev] csoundGetSpout() question...
That's what I would have thought too. It seems the pointer is valid so
the problem may lie somewhere else. My concern is that I can't
recreate the crash with any consistency.

On 16 March 2012 18:00, Victor Lazzarini  wrote:
> I have not checked this, but my impression is that once the orchestra is compiled, spin and spout are allocated (with size ksmps*nchnls).
> Check if the pointer is not NULL.
>
> Victor
> On 16 Mar 2012, at 16:58, Rory Walsh wrote:
>
>> My frontend software is crashing erratically whenever I don't have an
>> 'outs' opcode in my code. csoundGetSpout() returns the address of the
>> Csound audio output buffer. What address does this function return if
>> no instruments are outputting anything? Or is there always a valid
>> buffer for every instrument, even if they aren't outputting audio? If
>> I spent more time looking at the internal workings of Csound I'd know
>> this!
>>
>> ------------------------------------------------------------------------------
>> This SF email is sponsosred by:
>> Try Windows Azure free for 90 days Click Here
>> http://p.sf.net/sfu/sfd2d-msazure
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-03-16 19:03
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundGetSpout() question...
Maybe the outs absence is a red herring. Make sure the problem is not to do with threading, ie. resources being modified by two threads at the same time etc.
On 16 Mar 2012, at 18:54, Rory Walsh wrote:

> That's what I would have thought too. It seems the pointer is valid so
> the problem may lie somewhere else. My concern is that I can't
> recreate the crash with any consistency.
> 
> On 16 March 2012 18:00, Victor Lazzarini  wrote:
>> I have not checked this, but my impression is that once the orchestra is compiled, spin and spout are allocated (with size ksmps*nchnls).
>> Check if the pointer is not NULL.
>> 
>> Victor
>> On 16 Mar 2012, at 16:58, Rory Walsh wrote:
>> 
>>> My frontend software is crashing erratically whenever I don't have an
>>> 'outs' opcode in my code. csoundGetSpout() returns the address of the
>>> Csound audio output buffer. What address does this function return if
>>> no instruments are outputting anything? Or is there always a valid
>>> buffer for every instrument, even if they aren't outputting audio? If
>>> I spent more time looking at the internal workings of Csound I'd know
>>> this!
>>> 
>>> ------------------------------------------------------------------------------
>>> This SF email is sponsosred by:
>>> Try Windows Azure free for 90 days Click Here
>>> http://p.sf.net/sfu/sfd2d-msazure
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> This SF email is sponsosred by:
>> Try Windows Azure free for 90 days Click Here
>> http://p.sf.net/sfu/sfd2d-msazure
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here 
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-03-16 19:06
FromRory Walsh
SubjectRe: [Cs-dev] csoundGetSpout() question...
I'll have to see if I can recreate the crash properly. I better buckle
up, this could turn ugly...

On 16 March 2012 19:03, Victor Lazzarini  wrote:
> Maybe the outs absence is a red herring. Make sure the problem is not to do with threading, ie. resources being modified by two threads at the same time etc.
> On 16 Mar 2012, at 18:54, Rory Walsh wrote:
>
>> That's what I would have thought too. It seems the pointer is valid so
>> the problem may lie somewhere else. My concern is that I can't
>> recreate the crash with any consistency.
>>
>> On 16 March 2012 18:00, Victor Lazzarini  wrote:
>>> I have not checked this, but my impression is that once the orchestra is compiled, spin and spout are allocated (with size ksmps*nchnls).
>>> Check if the pointer is not NULL.
>>>
>>> Victor
>>> On 16 Mar 2012, at 16:58, Rory Walsh wrote:
>>>
>>>> My frontend software is crashing erratically whenever I don't have an
>>>> 'outs' opcode in my code. csoundGetSpout() returns the address of the
>>>> Csound audio output buffer. What address does this function return if
>>>> no instruments are outputting anything? Or is there always a valid
>>>> buffer for every instrument, even if they aren't outputting audio? If
>>>> I spent more time looking at the internal workings of Csound I'd know
>>>> this!
>>>>
>>>> ------------------------------------------------------------------------------
>>>> This SF email is sponsosred by:
>>>> Try Windows Azure free for 90 days Click Here
>>>> http://p.sf.net/sfu/sfd2d-msazure
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> This SF email is sponsosred by:
>>> Try Windows Azure free for 90 days Click Here
>>> http://p.sf.net/sfu/sfd2d-msazure
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> This SF email is sponsosred by:
>> Try Windows Azure free for 90 days Click Here
>> http://p.sf.net/sfu/sfd2d-msazure
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net