Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Csound message buffer not working?

Date2012-05-01 08:15
FromAndres Cabrera
SubjectRe: [Cs-dev] Csound message buffer not working?
 Or remove them...there should be no dark corners in the new API. It
should all be pure white light.

A
-----Original Message-----
From: Victor
Sent:  30/04/2012, 5:56  PM
To: Developer discussions
Subject: Re: [Cs-dev] Csound message buffer not working?

Possibly best to avoid it then.



On 30 Apr 2012, at 17:37, Andres Cabrera  wrote:

> Yes, it's one of the dark corners of the API... You are supposed to
> enable the message buffer and then you can pop messages from the
> message buffer. It's an alternative to setting a callback function,
> useful for quick runs of Csound. The big disadvantage in the current
> implementation, is that the message buffer is stored in the user data
> pointer, so you can't pass user data to any other callback if you are
> using the message buffer.
>
> Cheers,
> Andrés
>
> On Mon, Apr 30, 2012 at 5:25 PM, Victor  wrote:
>> I have never used that. How is supposed to work?
>>
>>
>>
>> On 30 Apr 2012, at 17:06, Andres Cabrera  wrote:
>>
>>> Hi,
>>>
>>> I'm trying to use Csound's internal message system but its crashing on compile:
>>>
>>> {
>>>  CSOUND *csoundD;
>>>  csoundD=csoundCreate(0);
>>>  csoundEnableMessageBuffer(csoundD, 1);
>>>
>>>  int result = csoundCompile(csoundD,argc,argv);
>>> }
>>>
>>> Don't have a debug build handy, so can't be better help...
>>>
>>> Cheers,
>>> Andrés
>>>
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond. Discussions
>>> will include endpoint security, mobile security and the latest in malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sou

Date2012-05-01 09:39
FromVictor Lazzarini
SubjectRe: [Cs-dev] Csound message buffer not working?
definitely.
On 1 May 2012, at 08:15, Andres Cabrera wrote:

> Or remove them...there should be no dark corners in the new API. It
> should all be pure white light.
> 
> A
> -----Original Message-----
> From: Victor
> Sent:  30/04/2012, 5:56  PM
> To: Developer discussions
> Subject: Re: [Cs-dev] Csound message buffer not working?
> 
> Possibly best to avoid it then.
> 
> 
> 
> On 30 Apr 2012, at 17:37, Andres Cabrera  wrote:
> 
>> Yes, it's one of the dark corners of the API... You are supposed to
>> enable the message buffer and then you can pop messages from the
>> message buffer. It's an alternative to setting a callback function,
>> useful for quick runs of Csound. The big disadvantage in the current
>> implementation, is that the message buffer is stored in the user data
>> pointer, so you can't pass user data to any other callback if you are
>> using the message buffer.
>> 
>> Cheers,
>> Andrés
>> 
>> On Mon, Apr 30, 2012 at 5:25 PM, Victor  wrote:
>>> I have never used that. How is supposed to work?
>>> 
>>> 
>>> 
>>> On 30 Apr 2012, at 17:06, Andres Cabrera  wrote:
>>> 
>>>> Hi,
>>>> 
>>>> I'm trying to use Csound's internal message system but its crashing on compile:
>>>> 
>>>> {
>>>> CSOUND *csoundD;
>>>> csoundD=csoundCreate(0);
>>>> csoundEnableMessageBuffer(csoundD, 1);
>>>> 
>>>> int result = csoundCompile(csoundD,argc,argv);
>>>> }
>>>> 
>>>> Don't have a debug build handy, so can't be better help...
>>>> 
>>>> Cheers,
>>>> Andrés
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Live Security Virtual Conference
>>>> Exclusive live event will cover all the ways today's security and
>>>> threat landscape has changed and how IT managers can respond. Discussions
>>>> will include endpoint security, mobile security and the latest in malware
>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond. Discussions
>>> will include endpoint security, mobile security and the latest in malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> 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




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-01 11:04
FromRichard Dobson
SubjectRe: [Cs-dev] Csound message buffer not working?
On 01/05/2012 08:15, Andres Cabrera wrote:
>   Or remove them...there should be no dark corners in the new API. It
> should all be pure white light.
>


This is an audio-oriented API, so that should be "pure white noise", 
surely? :-)

Richard Dobson

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net