mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 08:44:04 +02:00
Fix a bug with sinc SRC.
This commit is contained in:
@@ -23565,6 +23565,8 @@ mal_uint64 mal_src_read_deinterleaved__sinc(mal_src* pSRC, mal_uint64 frameCount
|
|||||||
ppNextSamplesOut[iChannel] += outputFramesToRead;
|
ppNextSamplesOut[iChannel] += outputFramesToRead;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
totalOutputFramesRead += outputFramesToRead;
|
||||||
|
|
||||||
mal_uint32 prevWindowPosInSamples = pSRC->sinc.windowPosInSamples;
|
mal_uint32 prevWindowPosInSamples = pSRC->sinc.windowPosInSamples;
|
||||||
|
|
||||||
pSRC->sinc.timeIn += (outputFramesToRead * factor);
|
pSRC->sinc.timeIn += (outputFramesToRead * factor);
|
||||||
@@ -23616,8 +23618,6 @@ mal_uint64 mal_src_read_deinterleaved__sinc(mal_src* pSRC, mal_uint64 frameCount
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
totalOutputFramesRead += outputFramesToRead;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return totalOutputFramesRead;
|
return totalOutputFramesRead;
|
||||||
|
|||||||
Reference in New Issue
Block a user