Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/sanear.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Marsev <alex.marsev@gmail.com>2015-10-19 00:39:19 +0300
committerAlex Marsev <alex.marsev@gmail.com>2015-10-19 00:39:19 +0300
commit5f2752a3f7652a289f48211cd15b967632506621 (patch)
treef7ad6a2195c22def1f13f1d71cfac75e87e4740e /src
parent739293f4f82c010f55f7a50996e1ae47d8002bae (diff)
Don't adjust rate while cross-fading
Diffstat (limited to 'src')
-rw-r--r--src/DspRate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DspRate.cpp b/src/DspRate.cpp
index 5fe042c..8cbbbf2 100644
--- a/src/DspRate.cpp
+++ b/src/DspRate.cpp
@@ -96,7 +96,7 @@ namespace SaneAudioRenderer
if (!soxr || chunk.IsEmpty())
return;
- if (m_state == State::Variable && m_variableDelay > 0)
+ if (m_state == State::Variable && !m_inStateTransition && m_variableDelay > 0)
{
uint64_t inputPosition = llMulDiv(m_variableOutputFrames, m_inputRate, m_outputRate, 0);
int64_t adjustedFrames = inputPosition + m_variableDelay - m_variableInputFrames;