2023-01-25 13:08:26 +01:00
|
|
|
#include "core/plugin.h"
|
|
|
|
|
#include "logger.h"
|
|
|
|
|
#include "rtaudio_sdr.h"
|
|
|
|
|
|
2023-11-29 11:53:13 +01:00
|
|
|
class RtAudioSDRSupport : public satdump::Plugin
|
2023-01-25 13:08:26 +01:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
std::string getID()
|
|
|
|
|
{
|
|
|
|
|
return "rtaudio_sdr_support";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void init()
|
|
|
|
|
{
|
|
|
|
|
satdump::eventBus->register_handler<dsp::RegisterDSPSampleSourcesEvent>(registerSources);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void registerSources(const dsp::RegisterDSPSampleSourcesEvent &evt)
|
|
|
|
|
{
|
|
|
|
|
evt.dsp_sources_registry.insert({RtAudioSource::getID(), {RtAudioSource::getInstance, RtAudioSource::getAvailableSources}});
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-11-29 11:53:13 +01:00
|
|
|
PLUGIN_LOADER(RtAudioSDRSupport)
|