Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] SDFT and PVSDAT changes

Date2007-10-02 23:01
FromMichael Gogins
SubjectRe: [Cs-dev] SDFT and PVSDAT changes
Yes, I'm building it.

If the new field is at the end of its structure, it's not an incompatible change, I think.

Regards,
Mike

-----Original Message-----
>From: Anthony Kozar 
>Sent: Oct 2, 2007 12:44 PM
>To: Csound Developer list 
>Subject: Re: [Cs-dev] SDFT and PVSDAT changes
>
>So, are the rest of you using SDFT for building the releases?
>
>Do the changes to PVSDATEXT constitute an incompatible change in the API?
>
>Anthony
>
>Victor Lazzarini wrote on 10/2/07 5:42 AM:
>
>> PVSDATEXT should match PVSDAT apart from the AUXCH data member,
>> which is a float *. Otherwise, pvsbus will not work.
>> I have added the changes to it.
>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by: Microsoft
>Defy all challenges. Microsoft(R) Visual Studio 2005.
>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-10-02 23:53
FromAnthony Kozar
SubjectRe: [Cs-dev] SDFT and PVSDAT changes
Michael Gogins wrote on 10/2/07 6:01 PM:

> If the new field is at the end of its structure, it's not an incompatible
> change, I think.

I think it also depends on whether the host or Csound is allocating the
structures that have changed.  If the host is passing pointers to memory it
has allocated, then Csound will probably write past the end of the buffer.

Besides, the new struct members were added to the middle and it looks to me
as if the code for the PVS in/out functions would have to be rewritten if
the new members were added to the end because of a memcpy() call that
assumes the float* frame member is at the end.

Anthony


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net