kopia lustrzana https://github.com/f4exb/sdrangel
Tx support: fixed buddy handling
rodzic
f48fd4c3a4
commit
171ba7674e
|
@ -389,6 +389,7 @@ void DeviceSinkAPI::addSourceBuddy(DeviceSourceAPI* buddy)
|
|||
std::vector<DeviceSourceAPI*>::iterator it = m_sourceBuddies.begin();
|
||||
|
||||
m_sourceBuddies.push_back(buddy);
|
||||
buddy->m_sinkBuddies.push_back(this);
|
||||
qDebug("DeviceSinkAPI::addSourceBuddy: added buddy %s(%s) to the list [%lx] <-> [%lx]",
|
||||
qPrintable(buddy->getHardwareId()),
|
||||
qPrintable(buddy->getSampleSourceSerial()),
|
||||
|
@ -401,6 +402,7 @@ void DeviceSinkAPI::addSinkBuddy(DeviceSinkAPI* buddy)
|
|||
std::vector<DeviceSinkAPI*>::iterator it = m_sinkBuddies.begin();
|
||||
|
||||
m_sinkBuddies.push_back(buddy);
|
||||
buddy->m_sinkBuddies.push_back(this);
|
||||
qDebug("DeviceSinkAPI::addSinkBuddy: added buddy %s(%s) to the list [%lx] <-> [%lx]",
|
||||
qPrintable(buddy->getHardwareId()),
|
||||
qPrintable(buddy->getSampleSinkSerial()),
|
||||
|
|
|
@ -148,6 +148,7 @@ protected:
|
|||
void *m_buddySharedPtr;
|
||||
|
||||
friend class MainWindow;
|
||||
friend class DeviceSourceAPI;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -399,6 +399,7 @@ void DeviceSourceAPI::addSinkBuddy(DeviceSinkAPI* buddy)
|
|||
std::vector<DeviceSinkAPI*>::iterator it = m_sinkBuddies.begin();
|
||||
|
||||
m_sinkBuddies.push_back(buddy);
|
||||
buddy->m_sourceBuddies.push_back(this);
|
||||
qDebug("DeviceSourceAPI::addSinkBuddy: added buddy %s(%s) [%lx] <-> [%lx]",
|
||||
qPrintable(buddy->getHardwareId()),
|
||||
qPrintable(buddy->getSampleSinkSerial()),
|
||||
|
|
|
@ -148,6 +148,7 @@ protected:
|
|||
void *m_buddySharedPtr;
|
||||
|
||||
friend class MainWindow;
|
||||
friend class DeviceSinkAPI;
|
||||
};
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue