diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-09-18 12:15:12 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-09-18 12:15:12 +0200 |
commit | c83676c70c5a11a3ea9893a903609fa030bd7dfa (patch) | |
tree | c7f694c48f70a3ee08af3c5f9359583ebfdff2ba /src/DabModulator.cpp | |
parent | acb216d31c321da7b4e45e5ad2ff04300c98234d (diff) | |
download | dabmod-c83676c70c5a11a3ea9893a903609fa030bd7dfa.tar.gz dabmod-c83676c70c5a11a3ea9893a903609fa030bd7dfa.tar.bz2 dabmod-c83676c70c5a11a3ea9893a903609fa030bd7dfa.zip |
Keep TII settings across modulator restart
Diffstat (limited to 'src/DabModulator.cpp')
-rw-r--r-- | src/DabModulator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DabModulator.cpp b/src/DabModulator.cpp index ebfcd63..5219ac4 100644 --- a/src/DabModulator.cpp +++ b/src/DabModulator.cpp @@ -57,7 +57,7 @@ DabModulator::DabModulator( double& tist_offset_s, unsigned tist_delay_stages, RemoteControllers* rcs, - const tii_config_t& tiiConfig, + tii_config_t& tiiConfig, unsigned outputRate, unsigned clockRate, unsigned dabMode, GainMode gainMode, float& digGain, float normalise, @@ -203,8 +203,8 @@ int DabModulator::process(Buffer* const dataIn, Buffer* dataOut) tii = make_shared<TII>(myDabMode, myTiiConfig); tii->enrol_at(*myRCs); } - catch (std::runtime_error& e) { - etiLog.level(error) << "Could not initialise TII, skipping!"; + catch (TIIError& e) { + etiLog.level(error) << "Could not initialise TII: " << e.what(); } shared_ptr<OfdmGenerator> cifOfdm( |