~ubuntu-branches/ubuntu/precise/csound/precise

« back to all changes in this revision

Viewing changes to Opcodes/pvadd.c

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler
  • Date: 2012-04-19 09:26:46 UTC
  • mfrom: (3.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20120419092646-96xbj1n6atuqosk2
Tags: 1:5.17.6~dfsg-1
* New upstream release
 - Do not build the wiimote opcodes (we need wiiuse).
* Add new API function to symbols file
* Disable lua opcodes, they were broken. Requires OpenMP to be enabled.
* Backport fixes from upstream:
  - Link dssi4cs with dl. Backport
  - Fix building of CsoundAC

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
    char     pvfilnam[MAXNAME];
69
69
    int      size;
70
70
    FUNC     *ftp = NULL, *AmpGateFunc = NULL;
71
 
    MYFLT    *oscphase;
72
71
    int32     memsize;
73
72
 
74
 
   if (*p->ifn > FL(0.0))
75
 
     if (UNLIKELY((ftp = csound->FTFind(csound, p->ifn)) == NULL))
76
 
       return NOTOK;
77
 
   p->ftp = ftp;
 
73
    if (*p->ifn > FL(0.0))
 
74
      if (UNLIKELY((ftp = csound->FTFind(csound, p->ifn)) == NULL))
 
75
        return NOTOK;
 
76
    p->ftp = ftp;
78
77
 
79
 
   if (*p->igatefun > FL(0.0))
80
 
     if (UNLIKELY((AmpGateFunc = csound->FTFind(csound, p->igatefun)) == NULL))
81
 
       return NOTOK;
 
78
    if (*p->igatefun > FL(0.0))
 
79
      if (UNLIKELY((AmpGateFunc = csound->FTFind(csound, p->igatefun)) == NULL))
 
80
        return NOTOK;
82
81
    p->AmpGateFunc = AmpGateFunc;
83
82
 
84
83
    csound->strarg2name(csound, pvfilnam, p->ifilno, "pvoc.", p->XSTRCODE);
120
119
     p->frPtr = (float*) p->pvcopy;
121
120
   }
122
121
 
123
 
    oscphase = p->oscphase;
124
 
 
125
122
    memset(p->oscphase, 0, MAXBINS*sizeof(MYFLT));
126
123
 
127
124
    ibins = (*p->ibins <= FL(0.0) ? (size / 2) : (int) *p->ibins);