Skip to content

Commit

Permalink
plugins: Pitch.ar - fix crash for high execution period
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Blechmann <tim@klingt.org>
  • Loading branch information
timblechmann committed Jun 9, 2011
1 parent 47ba617 commit 5670913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/Source/plugins/DelayUGens.cpp
Expand Up @@ -1668,7 +1668,7 @@ void Pitch_Ctor(Pitch *unit)
unit->m_execPeriod = (int)(unit->m_srate / execfreq);
unit->m_execPeriod = sc_max(unit->m_execPeriod, unit->mWorld->mFullRate.mBufLength);

unit->m_size = unit->m_maxperiod << 1;
unit->m_size = sc_max(unit->m_maxperiod << 1, unit->m_execPeriod);

unit->m_buffer = (float*)RTAlloc(unit->mWorld, unit->m_size * sizeof(float));

Expand Down

0 comments on commit 5670913

Please sign in to comment.