1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-25 03:24:18 -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
+4 -3
View File
@@ -101,10 +101,10 @@ void DSPDeviceSinkEngine::addChannelSource(BasebandSampleSource* source)
getInputMessageQueue()->push(cmd);
}
void DSPDeviceSinkEngine::removeChannelSource(BasebandSampleSource* source)
void DSPDeviceSinkEngine::removeChannelSource(BasebandSampleSource* source, bool deleting)
{
qDebug() << "DSPDeviceSinkEngine::removeChannelSource: " << source->getSourceName().toStdString().c_str();
auto *cmd = new DSPRemoveBasebandSampleSource(source);
auto *cmd = new DSPRemoveBasebandSampleSource(source, deleting);
getInputMessageQueue()->push(cmd);
}
@@ -499,8 +499,9 @@ bool DSPDeviceSinkEngine::handleMessage(const Message& message)
{
auto& cmd = (const DSPRemoveBasebandSampleSource&) message;
BasebandSampleSource* source = cmd.getSampleSource();
bool deleting = cmd.getDeleting();
if(m_state == State::StRunning) {
if (!deleting && (m_state == State::StRunning)) {
source->stop();
}