That's not what lengths is meant for, it's meant for describing vector lengths on the inputs, and they don't change in GNU Radio. For dynamic selection, see the multiply_matrix block (it comes with examples in gr-blocks).
Cheers, M On 07/06/2016 04:35 PM, Robert Kraml wrote: > I'm trying to use the stream_mux block in C++ to switch between a number > of streams. I can instantiate it with an "lengths" vector of say { 1 , > 0 } to select the first and not the second channel but I don't see how > this is changed (say to { 0,1}) on the fly. It is a const reference and > I don't see any other functions available to switch it once it is started. > > -Bob > > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio