diff options
author | Tom Rondeau | 2012-11-24 19:09:02 -0500 |
---|---|---|
committer | Tom Rondeau | 2012-11-24 19:09:02 -0500 |
commit | 9dc8f8b18043e71b50b3a254cb52bf355e97e6fa (patch) | |
tree | f1a00dc48cecc25ca2fbc57aa0267bb40871ac63 /grc/blocks/gr_file_meta_sink.xml | |
parent | 54c23abf9b9703b8d52704fa01b9d6069d9edf91 (diff) | |
download | gnuradio-9dc8f8b18043e71b50b3a254cb52bf355e97e6fa.tar.gz gnuradio-9dc8f8b18043e71b50b3a254cb52bf355e97e6fa.tar.bz2 gnuradio-9dc8f8b18043e71b50b3a254cb52bf355e97e6fa.zip |
core: Update file_meta_sink to inject headers into data stream.
When a tag with updated metadata information is received, close out the previous header (by setting the segment size) and create a new header with the new data. Specifically for sample rate and time stamps. Will be useful for extra_dict when implemented.
Diffstat (limited to 'grc/blocks/gr_file_meta_sink.xml')
-rw-r--r-- | grc/blocks/gr_file_meta_sink.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/grc/blocks/gr_file_meta_sink.xml b/grc/blocks/gr_file_meta_sink.xml index 13a7030b0..e6f5f2bd6 100644 --- a/grc/blocks/gr_file_meta_sink.xml +++ b/grc/blocks/gr_file_meta_sink.xml @@ -8,7 +8,7 @@ <name>File Meta Sink</name> <key>gr_file_meta_sink</key> <import>from gnuradio import gr</import> - <make>gr.file_meta_sink($type.size*$vlen, $file, $samp_rate, $type.dtype, $type.cplx) + <make>gr.file_meta_sink($type.size*$vlen, $file, $samp_rate, $rel_rate, $type.dtype, $type.cplx) self.$(id).set_unbuffered($unbuffered)</make> <callback>set_unbuffered($unbuffered)</callback> <callback>open($file)</callback> @@ -65,6 +65,12 @@ self.$(id).set_unbuffered($unbuffered)</make> <type>real</type> </param> <param> + <name>Relative Rate Change</name> + <key>rel_rate</key> + <value>1</value> + <type>real</type> + </param> + <param> <name>Vec Length</name> <key>vlen</key> <value>1</value> |