mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-10 10:33:29 -05:00
Add possibility to return the core device interface pointer from the device source API
This commit is contained in:
parent
b957c35493
commit
868f96ea96
@ -70,6 +70,11 @@ void DeviceSourceAPI::setSource(DeviceSampleSource* source)
|
||||
m_deviceSourceEngine->setSource(source);
|
||||
}
|
||||
|
||||
DeviceSampleSource *DeviceSourceAPI::getSource()
|
||||
{
|
||||
return m_deviceSourceEngine->getSource();
|
||||
}
|
||||
|
||||
bool DeviceSourceAPI::initAcquisition()
|
||||
{
|
||||
return m_deviceSourceEngine->initAcquisition();
|
||||
|
@ -48,7 +48,8 @@ public:
|
||||
void removeSink(BasebandSampleSink* sink); //!< Remove a sample sink from device engine
|
||||
void addThreadedSink(ThreadedBasebandSampleSink* sink); //!< Add a sample sink that will run on its own thread to device engine
|
||||
void removeThreadedSink(ThreadedBasebandSampleSink* sink); //!< Remove a sample sink that runs on its own thread from device engine
|
||||
void setSource(DeviceSampleSource* source); //!< Set device engine sample source type
|
||||
void setSource(DeviceSampleSource* source); //!< Set device sample source
|
||||
DeviceSampleSource *getSource(); //!< Return pointer to the device sample source
|
||||
bool initAcquisition(); //!< Initialize device engine acquisition sequence
|
||||
bool startAcquisition(); //!< Start device engine acquisition sequence
|
||||
void stopAcquisition(); //!< Stop device engine acquisition sequence
|
||||
|
@ -61,6 +61,7 @@ public:
|
||||
|
||||
void setSource(DeviceSampleSource* source); //!< Set the sample source type
|
||||
void setSourceSequence(int sequence); //!< Set the sample source sequence in type
|
||||
DeviceSampleSource *getSource() { return m_deviceSampleSource; }
|
||||
|
||||
void addSink(BasebandSampleSink* sink); //!< Add a sample sink
|
||||
void removeSink(BasebandSampleSink* sink); //!< Remove a sample sink
|
||||
|
Loading…
Reference in New Issue
Block a user