summaryrefslogtreecommitdiff
path: root/gr-audio/examples/python/audio_to_file.py
diff options
context:
space:
mode:
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)