On Wed, Apr 26, 2006 at 11:50:39AM -0400, Chuck Swiger wrote:
gr_io_signature_sptr output_signature)
where
gr_io_signature (int min_streams, int max_streams, size_t
sizeof_stream_item)
tia
–Chuck
Hi Chuck,
You’re right. FWIW, the underlying representation is designed to
support different types on each input or output stream, but the top
level constructor, gr_io_signature, doesn’t implement an interface to
it.
I’m pretty sure that sizeof(atsc::syminfo) is 4, which is the same as
sizeof(float). This is true because the total width of the integer
bit fields in atsc::syminfo is <= 32.
Add
assert(sizeof(float) == sizeof(atsc::syminfo));
somewhere in work, and then cast away. We lose clarity in the i/o
signature, but I’m pretty sure it’ll work. [ It worked before ]
I was just asking myself the same question but I’m not sure I understood
your answer.
Is it possible to have two output streams of different data types? I
want
one to be unsignad char and the other one float or double. How is it to
be
coded?