|
From: | Marcus Müller |
Subject: | Re: [Discuss-gnuradio] Code Reuse Question |
Date: | Wed, 11 May 2016 22:55:24 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
Generate a general_block. Copy the content of head_impl.cc 's work()
method to the general_work method. don't forget the private
variables from head.h and the initialization of those in the
constructor. Replace the "return -1;" by "return 0" to make the block stop producing samples after it's done it's job; before the final "return n; " add a "consume_each(n);". Best regards, Marcus On 11.05.2016 22:23, Richard Bell wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |