summaryrefslogtreecommitdiff
path: root/gr-audio/examples/python/audio_to_file.py
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-03-10 23:52:51 -0400
committerTom Rondeau <trondeau@vt.edu>2013-03-10 23:52:51 -0400
commit294a6fd3b811703329eb15ed91d848c65cc6700e (patch)
treeb422709c45c6bd8a67255d1c55f0cc34604e5bfc /gr-audio/examples/python/audio_to_file.py
parent5a3f0062fa438875b68191363d4ff78ccd07d0c9 (diff)
blocks: removing file_sink/source file_descriptor_sink/source form core and moved all refs to gr-blocks.
Diffstat (limited to 'gr-audio/examples/python/audio_to_file.py')
-rwxr-xr-xgr-audio/examples/python/audio_to_file.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-audio/examples/python/audio_to_file.py b/gr-audio/examples/python/audio_to_file.py
index 3f7a4f8d1c..201ec90bf1 100755
--- a/gr-audio/examples/python/audio_to_file.py
+++ b/gr-audio/examples/python/audio_to_file.py
@@ -22,6 +22,7 @@
from gnuradio import gr
from gnuradio import audio
+from gnuradio import blocks
from gnuradio.eng_option import eng_option
from optparse import OptionParser
@@ -47,7 +48,7 @@ class my_top_block(gr.top_block):
sample_rate = int(options.sample_rate)
src = audio.source (sample_rate, options.audio_input)
- dst = gr.file_sink (gr.sizeof_float, filename)
+ dst = blocks.file_sink (gr.sizeof_float, filename)
if options.nsamples is None:
self.connect((src, 0), dst)