Give Processors a run() function.

So main() can call it, start a Processor linked in to the baseband binary.
This commit is contained in:
Jared Boone
2016-06-30 11:53:58 -07:00
parent 1a5f3a4422
commit 500a651bcf
9 changed files with 57 additions and 15 deletions

View File

@@ -23,6 +23,8 @@
#include "audio_output.hpp"
#include "event_m4.hpp"
#include <array>
void NarrowbandAMAudio::execute(const buffer_c8_t& buffer) {
@@ -105,3 +107,8 @@ void NarrowbandAMAudio::capture_config(const CaptureConfigMessage& message) {
audio_output.set_stream(nullptr);
}
}
void run() {
EventDispatcher event_dispatcher { std::make_unique<NarrowbandAMAudio>() };
event_dispatcher.run();
}