mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 22:14:45 -04:00
MIMO: adapt to sample source FIFO redesign and Tx code reorganization
This commit is contained in:
@@ -48,7 +48,7 @@ TestMOSync::TestMOSync(DeviceAPI *deviceAPI) :
|
||||
m_feedSpectrumIndex(0)
|
||||
{
|
||||
m_mimoType = MIMOHalfSynchronous;
|
||||
m_sampleMOFifo.init(2, 4096*64);
|
||||
m_sampleMOFifo.init(2, SampleMOFifo::getSizePolicy(m_settings.m_sampleRate));
|
||||
m_deviceAPI->setNbSourceStreams(0);
|
||||
m_deviceAPI->setNbSinkStreams(2);
|
||||
}
|
||||
@@ -254,6 +254,12 @@ bool TestMOSync::applySettings(const TestMOSyncSettings& settings, bool force)
|
||||
forwardChangeTxDSP = true;
|
||||
}
|
||||
|
||||
if ((m_settings.m_sampleRate != settings.m_sampleRate)
|
||||
|| (m_settings.m_log2Interp != settings.m_log2Interp) || force)
|
||||
{
|
||||
m_sampleMOFifo.resize(SampleMOFifo::getSizePolicy(m_settings.m_sampleRate));
|
||||
}
|
||||
|
||||
if ((m_settings.m_sampleRate != settings.m_sampleRate) || force)
|
||||
{
|
||||
if (m_sinkThread) {
|
||||
|
||||
Reference in New Issue
Block a user