From b455a74818b35566f4bf524e4824c000bcf3194f Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 7 Oct 2016 16:53:32 +0200 Subject: Rework remotecontrol --- src/DabModulator.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/DabModulator.cpp') diff --git a/src/DabModulator.cpp b/src/DabModulator.cpp index 61e5ce8..927c7bd 100644 --- a/src/DabModulator.cpp +++ b/src/DabModulator.cpp @@ -56,7 +56,6 @@ DabModulator::DabModulator( double& tist_offset_s, unsigned tist_delay_stages, - RemoteControllers* rcs, tii_config_t& tiiConfig, unsigned outputRate, unsigned clockRate, unsigned dabMode, GainMode gainMode, @@ -70,11 +69,10 @@ DabModulator::DabModulator( myGainMode(gainMode), myDigGain(digGain), myNormalise(normalise), - myEtiReader(tist_offset_s, tist_delay_stages, rcs), + myEtiReader(tist_offset_s, tist_delay_stages), myFlowgraph(NULL), myFilterTapsFilename(filterTapsFilename), - myTiiConfig(tiiConfig), - myRCs(rcs) + myTiiConfig(tiiConfig) { PDEBUG("DabModulator::DabModulator(%u, %u, %u, %u) @ %p\n", outputRate, clockRate, dabMode, gainMode, this); @@ -198,7 +196,7 @@ int DabModulator::process(Buffer* const dataIn, Buffer* dataOut) shared_ptr tii; try { tii = make_shared(myDabMode, myTiiConfig); - tii->enrol_at(*myRCs); + rcs.enrol(tii.get()); } catch (TIIError& e) { etiLog.level(error) << "Could not initialise TII: " << e.what(); @@ -210,7 +208,7 @@ int DabModulator::process(Buffer* const dataIn, Buffer* dataOut) auto cifGain = make_shared( mySpacing, myGainMode, myDigGain, myNormalise); - cifGain->enrol_at(*myRCs); + rcs.enrol(cifGain.get()); auto cifGuard = make_shared( myNbSymbols, mySpacing, myNullSize, mySymSize); @@ -218,7 +216,7 @@ int DabModulator::process(Buffer* const dataIn, Buffer* dataOut) shared_ptr cifFilter; if (myFilterTapsFilename != "") { cifFilter = make_shared(myFilterTapsFilename); - cifFilter->enrol_at(*myRCs); + rcs.enrol(cifFilter.get()); } auto myOutput = make_shared(dataOut); -- cgit v1.2.3