From c954791fe78c2ab669cca9bbc4817a278910e1e1 Mon Sep 17 00:00:00 2001
From: Marcus D. Leech
Date: Wed, 18 Apr 2012 08:55:45 -0700
Subject: grc: add callback for changing file name in sinks
---
grc/blocks/gr_file_sink.xml | 1 +
grc/blocks/gr_wavfile_sink.xml | 1 +
2 files changed, 2 insertions(+)
(limited to 'grc')
diff --git a/grc/blocks/gr_file_sink.xml b/grc/blocks/gr_file_sink.xml
index 0081c93f8..d0a693900 100644
--- a/grc/blocks/gr_file_sink.xml
+++ b/grc/blocks/gr_file_sink.xml
@@ -11,6 +11,7 @@
gr.file_sink($type.size*$vlen, $file)
self.$(id).set_unbuffered($unbuffered)
set_unbuffered($unbuffered)
+ open($file)
File
file
diff --git a/grc/blocks/gr_wavfile_sink.xml b/grc/blocks/gr_wavfile_sink.xml
index f2c8a009f..651e16cb6 100644
--- a/grc/blocks/gr_wavfile_sink.xml
+++ b/grc/blocks/gr_wavfile_sink.xml
@@ -9,6 +9,7 @@
gr_wavfile_sink
from gnuradio import gr
gr.wavfile_sink($file, $nchan, $samp_rate, $bits_per_sample)
+ open($file)
File
file
--
cgit