# Re: How to "declare\_sample\_delay" in C++?

**URL:** <https://www.ruby-forum.com/t/re-how-to-declare-sample-delay-in-c/242080>\
**Category:** GNU Radio\
**Created:** [May 25, 2015, 2:06pm UTC](https://www.ruby-forum.com/t/re-how-to-declare-sample-delay-in-c/242080 "2015-05-25T14:06:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 25, 2015, 2:06pm UTC](https://www.ruby-forum.com/t/re-how-to-declare-sample-delay-in-c/242080/1 "2015-05-25T14:06:15Z")

</div>

Hi Martin,

Thanks for the answer. My confusion is that when you generate, for  
example,  
a multi-stage polyphase decimator in GRC, a ‘declare\_sample\_delay(0)’  
code  
will be generated for each decimation block. When I go from Python to  
C++ I  
thought I should do the same. Now, since the default is zero, does that  
mean the ‘declare\_sample\_delay(0)’ codes generated by GRC are redundant?

Thank you.

Best wishes,  
Khalid
