1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00

Add possibility to return the core device interface pointer from the device source API

This commit is contained in:
f4exb 2017-09-05 13:57:49 +02:00
parent b957c35493
commit 868f96ea96
3 changed files with 8 additions and 1 deletions

View File

@ -70,6 +70,11 @@ void DeviceSourceAPI::setSource(DeviceSampleSource* source)
m_deviceSourceEngine->setSource(source); m_deviceSourceEngine->setSource(source);
} }
DeviceSampleSource *DeviceSourceAPI::getSource()
{
return m_deviceSourceEngine->getSource();
}
bool DeviceSourceAPI::initAcquisition() bool DeviceSourceAPI::initAcquisition()
{ {
return m_deviceSourceEngine->initAcquisition(); return m_deviceSourceEngine->initAcquisition();

View File

@ -48,7 +48,8 @@ public:
void removeSink(BasebandSampleSink* sink); //!< Remove a sample sink from device engine 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 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 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 initAcquisition(); //!< Initialize device engine acquisition sequence
bool startAcquisition(); //!< Start device engine acquisition sequence bool startAcquisition(); //!< Start device engine acquisition sequence
void stopAcquisition(); //!< Stop device engine acquisition sequence void stopAcquisition(); //!< Stop device engine acquisition sequence

View File

@ -61,6 +61,7 @@ public:
void setSource(DeviceSampleSource* source); //!< Set the sample source type void setSource(DeviceSampleSource* source); //!< Set the sample source type
void setSourceSequence(int sequence); //!< Set the sample source sequence in 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 addSink(BasebandSampleSink* sink); //!< Add a sample sink
void removeSink(BasebandSampleSink* sink); //!< Remove a sample sink void removeSink(BasebandSampleSink* sink); //!< Remove a sample sink