mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-20 06:38:36 -04:00
Remote output/source: use queue langth for rate control and derive rate from Tx side. Other fixes
This commit is contained in:
@@ -164,15 +164,23 @@ bool RemoteSourceBaseband::handleMessage(const Message& cmd)
|
||||
void RemoteSourceBaseband::applySettings(const RemoteSourceSettings& settings, bool force)
|
||||
{
|
||||
qDebug() << "RemoteSourceBaseband::applySettings:"
|
||||
<< " m_dataAddress: " << settings.m_dataAddress
|
||||
<< " m_dataPort: " << settings.m_dataPort
|
||||
<< " force: " << force;
|
||||
<< "m_log2Interp:" << settings.m_log2Interp
|
||||
<< "m_filterChainHash:" << settings.m_filterChainHash
|
||||
<< "m_dataAddress:" << settings.m_dataAddress
|
||||
<< "m_dataPort:" << settings.m_dataPort
|
||||
<< "force:" << force;
|
||||
|
||||
if ((settings.m_dataAddress != m_settings.m_dataAddress)
|
||||
|| (settings.m_dataPort != m_settings.m_dataPort) || force) {
|
||||
m_source.dataBind(settings.m_dataAddress, settings.m_dataPort);
|
||||
}
|
||||
|
||||
if ((m_settings.m_filterChainHash != settings.m_filterChainHash)
|
||||
|| (m_settings.m_log2Interp != settings.m_log2Interp) || force)
|
||||
{
|
||||
m_channelizer->setInterpolation(settings.m_log2Interp, settings.m_filterChainHash);
|
||||
}
|
||||
|
||||
m_settings = settings;
|
||||
}
|
||||
|
||||
@@ -184,4 +192,4 @@ int RemoteSourceBaseband::getChannelSampleRate() const
|
||||
void RemoteSourceBaseband::newRemoteSampleRate(unsigned int sampleRate)
|
||||
{
|
||||
m_channelizer->setChannelization(sampleRate, 0); // Adjust channelizer to match remote sample rate
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user