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

« back to all changes in this revision

Viewing changes to Opcodes/pvinterp.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:
40
40
{
41
41
    char     pvfilnam[MAXNAME];
42
42
    PVOCEX_MEMFILE  pp;
43
 
    int      frInc, chans, size; /* THESE SHOULD BE SAVED IN PVOC STRUCT */
 
43
    int      frInc, chans; /* THESE SHOULD BE SAVED IN PVOC STRUCT */
44
44
 
45
45
    {
46
46
      PVOC_GLOBALS  *p_ = PVOC_GetGlobals(csound);
89
89
    p->maxFr = pp.nframes - 1;
90
90
    p->frPktim = (MYFLT) csound->ksmps / (MYFLT) frInc;
91
91
    p->frPrtim = csound->esr / (MYFLT) frInc;
92
 
    size = pvfrsiz(p);          /* size used in def of OPWLEN ? */
93
92
    p->prFlg = 1;       /* true */
94
93
    /* amplitude scale for PVOC */
95
94
 /* p->scale = (MYFLT) pp.fftsize * ((MYFLT) pp.fftsize / (MYFLT) pp.winsize);
140
139
    int      i;
141
140
    char     pvfilnam[MAXNAME];
142
141
    PVOCEX_MEMFILE  pp;
143
 
    int      frInc, chans, size; /* THESE SHOULD BE SAVED IN PVOC STRUCT */
 
142
    int      frInc, chans; /* THESE SHOULD BE SAVED IN PVOC STRUCT */
144
143
 
145
144
    p->pp = PVOC_GetGlobals(csound);
146
145
    p->pvbufread = p->pp->pvbufreadaddr;
193
192
    /* factor by which to mult expand phase diffs (ratio of samp spacings) */
194
193
    p->frPrtim = csound->esr / (MYFLT) frInc;
195
194
    /* factor by which to mulitply 'real' time index to get frame index */
196
 
    size = pvfrsiz(p);          /* size used in def of OPWLEN ? */
197
195
    /* amplitude scale for PVOC */
198
196
 /* p->scale = (MYFLT) pp.fftsize * ((MYFLT) pp.fftsize / (MYFLT) pp.winsize);
199
197
  */
314
312
    int      i;
315
313
    char     pvfilnam[MAXNAME];
316
314
    PVOCEX_MEMFILE  pp;
317
 
    int      frInc, chans, size; /* THESE SHOULD BE SAVED IN PVOC STRUCT */
 
315
    int      frInc, chans; /* THESE SHOULD BE SAVED IN PVOC STRUCT */
318
316
 
319
317
    p->pp = PVOC_GetGlobals(csound);
320
318
    p->pvbufread = p->pp->pvbufreadaddr;
365
363
    /* factor by which to mult expand phase diffs (ratio of samp spacings) */
366
364
    p->frPrtim = csound->esr / (MYFLT) frInc;
367
365
    /* factor by which to mulitply 'real' time index to get frame index */
368
 
    size = pvfrsiz(p);          /* size used in def of OPWLEN ? */
369
366
    /* amplitude scale for PVOC */
370
367
 /* p->scale = (MYFLT) pp.fftsize * ((MYFLT) pp.fftsize / (MYFLT) pp.winsize);
371
368
  */