comparison 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
comparison
equal deleted inserted replaced
1320:983667969a82 1321:ca43c4b7719c
101 101
102 sv_samplerate_t sampleRate = inputModel->getSampleRate(); 102 sv_samplerate_t sampleRate = inputModel->getSampleRate();
103 int blockSize = 1024; 103 int blockSize = 1024;
104 int channels = 1; 104 int channels = 1;
105 if (source) { 105 if (source) {
106 sampleRate = source->getTargetSampleRate(); 106 sampleRate = source->getSourceSampleRate();
107 blockSize = source->getTargetBlockSize(); 107 blockSize = source->getTargetBlockSize();
108 channels = source->getTargetChannelCount(); 108 channels = source->getTargetChannelCount();
109 } 109 }
110 110
111 RealTimePluginInstance *rtp = factory->instantiatePlugin 111 RealTimePluginInstance *rtp = factory->instantiatePlugin