Mercurial > hg > svcore
diff transform/ModelTransformerFactory.cpp @ 1321:ca43c4b7719c bqresample
Fixes to sample rate and latency handling
author | Chris Cannam |
---|---|
date | Fri, 09 Dec 2016 14:40:49 +0000 |
parents | a99641535e02 |
children | 48e9f538e6e9 |
line wrap: on
line diff
--- a/transform/ModelTransformerFactory.cpp Fri Dec 09 10:24:40 2016 +0000 +++ b/transform/ModelTransformerFactory.cpp Fri Dec 09 14:40:49 2016 +0000 @@ -103,7 +103,7 @@ int blockSize = 1024; int channels = 1; if (source) { - sampleRate = source->getTargetSampleRate(); + sampleRate = source->getSourceSampleRate(); blockSize = source->getTargetBlockSize(); channels = source->getTargetChannelCount(); }