summaryrefslogtreecommitdiff
path: root/gr-audio/examples/python/audio_play.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_play.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_play.py')
-rwxr-xr-xgr-audio/examples/python/audio_play.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-audio/examples/python/audio_play.py b/gr-audio/examples/python/audio_play.py
index 465590f69f..94ea72498d 100755
--- a/gr-audio/examples/python/audio_play.py
+++ b/gr-audio/examples/python/audio_play.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
@@ -45,7 +46,7 @@ class my_top_block(gr.top_block):
raise SystemExit, 1
sample_rate = int(options.sample_rate)
- src = gr.file_source (gr.sizeof_float, options.filename, options.repeat)
+ src = blocks.file_source (gr.sizeof_float, options.filename, options.repeat)
dst = audio.sink (sample_rate, options.audio_output)
self.connect(src, dst)