comparison main/MainWindow.cpp @ 1405:f78da49ef8e0 bqresample

Fixes to sample rate and latency handling
author Chris Cannam
date Fri, 09 Dec 2016 14:40:49 +0000
parents 0886d3f1095d
children a89ca5ccb958
comparison
equal deleted inserted replaced
1404:0886d3f1095d 1405:f78da49ef8e0
2406 2406
2407 //!!!??? 2407 //!!!???
2408 2408
2409 sv_samplerate_t ssr = getMainModel()->getSampleRate(); 2409 sv_samplerate_t ssr = getMainModel()->getSampleRate();
2410 sv_samplerate_t tsr = ssr; 2410 sv_samplerate_t tsr = ssr;
2411 if (m_playSource) tsr = m_playSource->getTargetSampleRate(); 2411 if (m_playSource) tsr = m_playSource->getDeviceSampleRate();
2412 2412
2413 if (ssr != tsr) { 2413 if (ssr != tsr) {
2414 description = tr("%1Hz (resampling to %2Hz)").arg(ssr).arg(tsr); 2414 description = tr("%1Hz (resampling to %2Hz)").arg(ssr).arg(tsr);
2415 } else { 2415 } else {
2416 description = QString("%1Hz").arg(ssr); 2416 description = QString("%1Hz").arg(ssr);