1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-03 06:24:48 -04:00

Don't stop source if being deleted. For #2315. Send DSPSignalNotification in audio mods for #2336.

This commit is contained in:
srcejon
2024-11-25 17:16:08 +00:00
parent d0cae88ba8
commit a91fa3b760
73 changed files with 228 additions and 166 deletions
+6 -3
View File
@@ -155,13 +155,13 @@ void DSPDeviceMIMOEngine::addChannelSource(BasebandSampleSource* source, int ind
getInputMessageQueue()->push(cmd);
}
void DSPDeviceMIMOEngine::removeChannelSource(BasebandSampleSource* source, int index)
void DSPDeviceMIMOEngine::removeChannelSource(BasebandSampleSource* source, bool deleting, int index)
{
qDebug() << "DSPDeviceMIMOEngine::removeChannelSource: "
<< source->getSourceName().toStdString().c_str()
<< " at: "
<< index;
auto *cmd = new RemoveBasebandSampleSource(source, index);
auto *cmd = new RemoveBasebandSampleSource(source, index, deleting);
getInputMessageQueue()->push(cmd);
}
@@ -1129,10 +1129,13 @@ bool DSPDeviceMIMOEngine::handleMessage(const Message& message)
const auto& msg = (const RemoveBasebandSampleSource&) message;
BasebandSampleSource* sampleSource = msg.getSampleSource();
unsigned int isink = msg.getIndex();
bool deleting = msg.getDeleting();
if (isink < m_basebandSampleSources.size())
{
sampleSource->stop();
if (!deleting) {
sampleSource->stop();
}
m_basebandSampleSources[isink].remove(sampleSource);
}