Don't change the offset, catch the tag in a downstream block and issue a new tag with the modified sample number.
We've been debating ways to handle decimating/interpolating blocks in the tag scheme, I don't think we'd settled on any consistent way to handle non-sync blocks. --n On Wed, Jun 6, 2012 at 4:47 PM, Zing Yu <[email protected]> wrote: > All, > > I have been playing with stream tags since a while and eventually come > across a problem. I have a block A which generates a series of tags. The > output of block A is then passed through an interpolation block B. So, a > tag which was associated with sample X in block A becomes associated with > sample X*I where I is the interpolation amount of block B. Now, what I want > is to change the offset of that particular tag from X*I to X*I +/- Z where > Z is any positive number such that X*I +/- Z is still a valid sample > number in that particular work() call. Any comments on how should I do > this will be appreciated. > > Thanks, > Y. > > _______________________________________________ > Discuss-gnuradio mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > >
_______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
