Skip to content

Commit

Permalink
fix syncloop typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jpffitch committed Oct 28, 2019
1 parent f92f173 commit dbd36d5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Opcodes/syncgrain.c
Expand Up @@ -212,18 +212,18 @@ static int32_t syncgrainloop_init(CSOUND *csound, syncgrainloop *p)
if (*p->iskip == 0) {
int32_t size = (p->olaps) * sizeof(double);
if (p->index.auxp == NULL || p->index.size < (uint32_t)size)
csound->AuxAlloc(csound, size, &p->index);
csound->AuxAlloc(csound, size, &p->index);
if (p->envindex.auxp == NULL || p->envindex.size < (uint32_t)size)
csound->AuxAlloc(csound, size, &p->envindex);
csound->AuxAlloc(csound, size, &p->envindex);
size = (p->olaps) * sizeof(int32_t);
if (p->streamon.auxp == NULL || p->streamon.size > (uint32_t)size)
csound->AuxAlloc(csound, size, &p->streamon);
p->count = 0; /* sampling period counter */
p->numstreams = 0; /* curr num of streams */
p->firststream = 0; /* streams index (first stream) */
p->start = *p->startpos*(p->sfunc->gen01args.sample_rate);
p->frac = 0.0f;
p->firsttime = 1;
if (p->streamon.auxp == NULL || p->streamon.size < (uint32_t)size)
csound->AuxAlloc(csound, size, &p->streamon);
p->count = 0; /* sampling period counter */
p->numstreams = 0; /* curr num of streams */
p->firststream = 0; /* streams index (first stream) */
p->start = *p->startpos*(p->sfunc->gen01args.sample_rate);
p->frac = 0.0f;
p->firsttime = 1;
}
return OK;
}
Expand Down

0 comments on commit dbd36d5

Please sign in to comment.