1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-06 11:42:17 +01:00

LIBSAMPLERATE needs to update the factor each time. Thanks to Rob Sykes.

This commit is contained in:
martynshaw99
2012-11-20 00:16:58 +00:00
parent 4b9a934ab4
commit 8b6a9ca3d7
2 changed files with 1 additions and 7 deletions

View File

@@ -206,7 +206,6 @@
int err;
SRC_STATE *state = src_new(mMethod, 1, &err);
mHandle = (void *)state;
mInitial = true;
}
VarRateResample::~VarRateResample()
@@ -263,10 +262,7 @@
float *outBuffer,
int outBufferLen)
{
if (mInitial) {
src_set_ratio((SRC_STATE *)mHandle, factor);
mInitial = false;
}
src_set_ratio((SRC_STATE *)mHandle, factor);
SRC_DATA data;