From 9dc8f8b18043e71b50b3a254cb52bf355e97e6fa Mon Sep 17 00:00:00 2001
From: Tom Rondeau
Date: Sat, 24 Nov 2012 19:09:02 -0500
Subject: 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.
---
grc/blocks/gr_file_meta_sink.xml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
(limited to 'grc/blocks/gr_file_meta_sink.xml')
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 @@
File Meta Sink
gr_file_meta_sink
from gnuradio import gr
- gr.file_meta_sink($type.size*$vlen, $file, $samp_rate, $type.dtype, $type.cplx)
+ gr.file_meta_sink($type.size*$vlen, $file, $samp_rate, $rel_rate, $type.dtype, $type.cplx)
self.$(id).set_unbuffered($unbuffered)
set_unbuffered($unbuffered)
open($file)
@@ -64,6 +64,12 @@ self.$(id).set_unbuffered($unbuffered)
samp_rate
real
+
+ Relative Rate Change
+ rel_rate
+ 1
+ real
+
Vec Length
vlen
--
cgit