discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Sinks that consume variable rates on each input


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Sinks that consume variable rates on each input
Date: Wed, 20 Sep 2006 16:31:18 -0700
User-agent: Mutt/1.5.9i

On Wed, Sep 20, 2006 at 06:21:02PM -0400, Kyle Jamieson wrote:
> "How to write a signal processing block" suggests subclassing from
> gr_sync_block for the case of a sink.  However, gr_sync_block's work
> function arranges to call consume_each for the user, consuming the
> same number of elements on all inputs.  What if my sink doesn't
> consume at the same rate on each input?  Presumably what I'd want to
> do is inherit directly from gr_block and call consume directly?

Yes, inherit from gr_block directly.  You'll need to implement
forecast and general_work

> Thanks,
> Kyle

Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]