[Cs-dev] psynth/psynth2
Date | 2005-10-09 11:19 |
From | jpff@codemist.co.uk |
Subject | [Cs-dev] psynth/psynth2 |
Just a check. In the init functions one reads (inter alia) if (p->amps.auxp == NULL && (unsigned)p->amps.size < sizeof(MYFLT) * numbins) csound->AuxAlloc(csound, sizeof(MYFLT) * numbins, &p->amps); Should this be a || rather than a && ? ==John ffitch ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-10-09 11:28 |
From | Istvan Varga |
Subject | Re: [Cs-dev] psynth/psynth2 |
jpff@codemist.co.uk wrote: > Just a check. > > In the init functions one reads (inter alia) > > if (p->amps.auxp == NULL && > (unsigned)p->amps.size < sizeof(MYFLT) * numbins) > csound->AuxAlloc(csound, sizeof(MYFLT) * numbins, &p->amps); > > Should this be a || rather than a && ? I assume it should be a ||. Also, in cases where the space is always to be cleared to zero, the check could be removed completely. ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |