mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-05 22:57:47 -04:00
Removed add/remove ancillary sink from device API
This commit is contained in:
parent
586e507280
commit
901553ab74
@ -58,28 +58,6 @@ DeviceAPI::~DeviceAPI()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeviceAPI::addAncillarySink(BasebandSampleSink *sink, unsigned int index)
|
|
||||||
{
|
|
||||||
if (m_deviceSourceEngine) {
|
|
||||||
m_deviceSourceEngine->addSink(sink);
|
|
||||||
} else if (m_deviceSinkEngine) {
|
|
||||||
m_deviceSinkEngine->addSpectrumSink(sink);
|
|
||||||
} else if (m_deviceMIMOEngine) {
|
|
||||||
m_deviceMIMOEngine->addAncillarySink(sink, index);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeviceAPI::removeAncillarySink(BasebandSampleSink* sink, unsigned int index)
|
|
||||||
{
|
|
||||||
if (m_deviceSourceEngine) {
|
|
||||||
m_deviceSourceEngine->removeSink(sink);
|
|
||||||
} else if (m_deviceSinkEngine) {
|
|
||||||
m_deviceSinkEngine->removeSpectrumSink(sink);
|
|
||||||
} else if (m_deviceMIMOEngine) {
|
|
||||||
m_deviceMIMOEngine->removeAncillarySink(sink, index);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeviceAPI::setSpectrumSinkInput(bool sourceElseSink, unsigned int index)
|
void DeviceAPI::setSpectrumSinkInput(bool sourceElseSink, unsigned int index)
|
||||||
{
|
{
|
||||||
if (m_deviceMIMOEngine) { // In practice this is only used in the MIMO case
|
if (m_deviceMIMOEngine) { // In practice this is only used in the MIMO case
|
||||||
|
@ -66,8 +66,6 @@ public:
|
|||||||
);
|
);
|
||||||
~DeviceAPI();
|
~DeviceAPI();
|
||||||
|
|
||||||
void addAncillarySink(BasebandSampleSink* sink, unsigned int index = 0); //!< Adds a sink to receive full baseband and that is not a channel (e.g. spectrum)
|
|
||||||
void removeAncillarySink(BasebandSampleSink* sink, unsigned int index = 0); //!< Removes it
|
|
||||||
void setSpectrumSinkInput(bool sourceElseSink = true, unsigned int index = 0); //!< Used in the MIMO case to select which stream is used as input to main spectrum
|
void setSpectrumSinkInput(bool sourceElseSink = true, unsigned int index = 0); //!< Used in the MIMO case to select which stream is used as input to main spectrum
|
||||||
|
|
||||||
void addChannelSink(BasebandSampleSink* sink, int streamIndex = 0); //!< Add a channel sink (Rx)
|
void addChannelSink(BasebandSampleSink* sink, int streamIndex = 0); //!< Add a channel sink (Rx)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user