summaryrefslogtreecommitdiffstats
path: root/src/Outputs.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2020-12-29 11:54:36 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2020-12-29 11:54:36 +0100
commitac13498dc219c74d8214a314d0341574ada0ceb3 (patch)
tree38be2f08137006bb94a763016f289359132d7c7d /src/Outputs.cpp
parentfbf20c6eb5c989687d2dcb8e97c8a2af9c51cc90 (diff)
downloadODR-AudioEnc-ac13498dc219c74d8214a314d0341574ada0ceb3.tar.gz
ODR-AudioEnc-ac13498dc219c74d8214a314d0341574ada0ceb3.tar.bz2
ODR-AudioEnc-ac13498dc219c74d8214a314d0341574ada0ceb3.zip
Make EDI output FEC configurable
Diffstat (limited to 'src/Outputs.cpp')
-rw-r--r--src/Outputs.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Outputs.cpp b/src/Outputs.cpp
index 27ab365..66335cb 100644
--- a/src/Outputs.cpp
+++ b/src/Outputs.cpp
@@ -155,8 +155,6 @@ void EDI::add_udp_destination(const std::string& host, unsigned int port)
// We cannot carry AF packets over UDP, because they would be too large.
m_edi_conf.enable_pft = true;
-
- // TODO make FEC configurable
}
void EDI::add_tcp_destination(const std::string& host, unsigned int port)
@@ -172,6 +170,12 @@ void EDI::add_tcp_destination(const std::string& host, unsigned int port)
m_edi_conf.dump = false;
}
+void EDI::set_fec(int fec)
+{
+ m_edi_conf.enable_pft = true;
+ m_edi_conf.fec = fec;
+}
+
bool EDI::enabled() const
{
return not m_edi_conf.destinations.empty();