Skip to content

Commit

Permalink
SoundTouch: guard against pitch == 0
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed May 25, 2015
1 parent 4439a36 commit 3216f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/enginebufferscalest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void EngineBufferScaleST::setScaleParameters(double base_rate,
// Note: pitch ratio must be positive
double pitch = fabs(*pPitchRatio);
if (pitch > 0.0) {
m_pSoundTouch->setPitch(*pPitchRatio);
m_pSoundTouch->setPitch(pitch);
}
m_dPitchRatio = *pPitchRatio;
}
Expand Down

0 comments on commit 3216f23

Please sign in to comment.