Csound Csound-dev Csound-tekno Search About

[Cs-dev] Csound 5.19 weirdness. insert.c?

Date2013-02-19 17:34
FromRory Walsh
Subject[Cs-dev] Csound 5.19 weirdness. insert.c?
I'm having some API related issues with the latest Csound 5.19. The
following instruments when called crashes me host, but Csound is fine
with it from the terminal?

instr 90001;clear channels
chnclear "doubleBass"
endin

If I take it out I get no problems, with it in I get a seg fault at
the following lines from insert.c

static void deact(CSOUND *csound, INSDS *ip)
{                               /* unlink single instr from activ chain */
    INSDS  *nxtp;               /*      and mark it inactive            */
                                /*   close any files in fd chain        */

    if (ip->nxtd != NULL)
      csoundDeinitialiseOpcodes(csound, ip);
    csound->instrtxtp[ip->insno]->active--; /* remove an active instrument */
    if (ip->xtratim > 0)
      csound->instrtxtp[ip->insno]->pending_release--;
    csound->cpu_power_busy -= csound->instrtxtp[ip->insno]->cpuload;
    /* IV - Sep 8 2002: free subinstr instances */
    /* that would ot

It breaks at line 568, at the line marked 'remove an active
insturment'. I'm getting a high-pitched noise from an always on
instruments that reads from a channel. I thought it might be because
I'm not clearing the channel afterwards, but I'm not sure. It could be
something else.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-02-19 17:40
FromRory Walsh
SubjectRe: [Cs-dev] Csound 5.19 weirdness. insert.c?
So it seems it was because my instrument number was too large, and
nothing to do with the channels. My question is why would it work from
the terminal and not from a host API? Don't tell me I still have
gremlins lying around!?!


On 19 February 2013 17:34, Rory Walsh  wrote:
> I'm having some API related issues with the latest Csound 5.19. The
> following instruments when called crashes me host, but Csound is fine
> with it from the terminal?
>
> instr 90001;clear channels
> chnclear "doubleBass"
> endin
>
> If I take it out I get no problems, with it in I get a seg fault at
> the following lines from insert.c
>
> static void deact(CSOUND *csound, INSDS *ip)
> {                               /* unlink single instr from activ chain */
>     INSDS  *nxtp;               /*      and mark it inactive            */
>                                 /*   close any files in fd chain        */
>
>     if (ip->nxtd != NULL)
>       csoundDeinitialiseOpcodes(csound, ip);
>     csound->instrtxtp[ip->insno]->active--; /* remove an active instrument */
>     if (ip->xtratim > 0)
>       csound->instrtxtp[ip->insno]->pending_release--;
>     csound->cpu_power_busy -= csound->instrtxtp[ip->insno]->cpuload;
>     /* IV - Sep 8 2002: free subinstr instances */
>     /* that would ot
>
> It breaks at line 568, at the line marked 'remove an active
> insturment'. I'm getting a high-pitched noise from an always on
> instruments that reads from a channel. I thought it might be because
> I'm not clearing the channel afterwards, but I'm not sure. It could be
> something else.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net