Csound Csound-dev Csound-tekno Search About

[Csnd] plugin_deinit in CS7 CPOF plugin API

Date2025-12-07 17:49
FromRichard Knight
Subject[Csnd] plugin_deinit in CS7 CPOF plugin API
Hi,
I'm looking at porting some plugins I've developed to Csound 7. In a few 
of these I use csound->plugin_deinit(this) which causes the struct's 
deinit() method to be called on deinitialisation.
However this isn't in the current plugin.h. Does anyone know if deinit() 
would be called automatically now if it exists - or if this has to be 
handled some other way?

Thanks!

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2025-12-07 18:29
Fromvlz
SubjectRe: [Csnd] plugin_deinit in CS7 CPOF plugin API
Hi Richard,

in Csound 7 you only need to define a deinit(), no need to register it anymore.

best
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 7 Dec 2025, at 17:49, Richard Knight  wrote:
> 
> Hi,
> I'm looking at porting some plugins I've developed to Csound 7. In a few of these I use csound->plugin_deinit(this) which causes the struct's deinit() method to be called on deinitialisation.
> However this isn't in the current plugin.h. Does anyone know if deinit() would be called automatically now if it exists - or if this has to be handled some other way?
> 
> Thanks!
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2025-12-07 18:31
FromRichard Knight
SubjectRe: [Csnd] plugin_deinit in CS7 CPOF plugin API
Hi,
Great, thank you - I suspected that may be the case.
all the best
RK

On 2025-12-07 18:29, vlz wrote:
> Hi Richard,
> 
> in Csound 7 you only need to define a deinit(), no need to register it 
> anymore.
> 
> best
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
> 
>> On 7 Dec 2025, at 17:49, Richard Knight  wrote:
>> 
>> Hi,
>> I'm looking at porting some plugins I've developed to Csound 7. In a 
>> few of these I use csound->plugin_deinit(this) which causes the 
>> struct's deinit() method to be called on deinitialisation.
>> However this isn't in the current plugin.h. Does anyone know if 
>> deinit() would be called automatically now if it exists - or if this 
>> has to be handled some other way?
>> 
>> Thanks!
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here