diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-08-07 11:37:50 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-08-07 11:37:50 +0200 |
commit | 02d96cb7b6a73595e5c517a3e352f578aa5497a0 (patch) | |
tree | 71011ded47e63c4d9854c8c37b511202976e8446 /src/DabMultiplexer.cpp | |
parent | 477345c3411cbf25ac6a1011845eca067f6e75bf (diff) | |
download | dabmux-02d96cb7b6a73595e5c517a3e352f578aa5497a0.tar.gz dabmux-02d96cb7b6a73595e5c517a3e352f578aa5497a0.tar.bz2 dabmux-02d96cb7b6a73595e5c517a3e352f578aa5497a0.zip |
Start FIB1, add FIG0/8
Diffstat (limited to 'src/DabMultiplexer.cpp')
-rw-r--r-- | src/DabMultiplexer.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/DabMultiplexer.cpp b/src/DabMultiplexer.cpp index ccf3594..3dbe325 100644 --- a/src/DabMultiplexer.cpp +++ b/src/DabMultiplexer.cpp @@ -631,10 +631,10 @@ void DabMultiplexer::mux_frame(std::vector<boost::shared_ptr<DabOutput> >& outpu unsigned char figSize = 0; // FIB 0 Insertion - bool new_fib0_carousel = m_pt.get("general.new_fib0_carousel", false); - if (new_fib0_carousel) { - // TODO update currentframe in rti - figSize += fig_carousel.fib0(&etiFrame[index], 30, currentFrame % 4); + bool new_fig_carousel = m_pt.get("general.new_fig_carousel", false); + if (new_fig_carousel) { + fig_carousel.set_currentFrame(currentFrame); + figSize += fig_carousel.carousel(0, &etiFrame[index], 30, currentFrame % 4); index += figSize; } // Skip creating a block for the else because @@ -1129,7 +1129,10 @@ void DabMultiplexer::mux_frame(std::vector<boost::shared_ptr<DabOutput> >& outpu figSize = 0; // FIB 1 insertion - switch (rotateFIB) { + if (new_fig_carousel) { + figSize += fig_carousel.carousel(1, &etiFrame[index], 30, currentFrame % 4); + index += figSize; + } else switch (rotateFIB) { case 0: // FIG 0/8 program fig0 = NULL; |