summaryrefslogtreecommitdiff
path: root/gr-audio/examples/python/dial_tone_wav.py
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-03-09 11:33:11 -0500
committerTom Rondeau <trondeau@vt.edu>2013-03-09 11:33:11 -0500
commitbe10d272537fd7d442ed1445ecd4805145e219cd (patch)
tree4546e6a11e089914d0d49c985e88a8828c1aef2f /gr-audio/examples/python/dial_tone_wav.py
parentb359d899af0771f3b3d66180af46df38d1c141f6 (diff)
blocks: removing tagged file sink, wavfile source/sink/base from core; now in gr-blocks.
Diffstat (limited to 'gr-audio/examples/python/dial_tone_wav.py')
-rwxr-xr-xgr-audio/examples/python/dial_tone_wav.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-audio/examples/python/dial_tone_wav.py b/gr-audio/examples/python/dial_tone_wav.py
index 4d8d6b4019..91bf744c95 100755
--- a/gr-audio/examples/python/dial_tone_wav.py
+++ b/gr-audio/examples/python/dial_tone_wav.py
@@ -23,6 +23,7 @@
# GNU Radio example program to record a dial tone to a WAV file
from gnuradio import gr
+from gnuradio import blocks
from gnuradio.eng_option import eng_option
from optparse import OptionParser
@@ -55,7 +56,7 @@ class my_top_block(gr.top_block):
src1 = analog.sig_source_f(sample_rate, analog.GR_SIN_WAVE, 440, ampl)
head0 = gr.head(gr.sizeof_float, int(options.samples))
head1 = gr.head(gr.sizeof_float, int(options.samples))
- dst = gr.wavfile_sink(args[0], 2, int(options.sample_rate), 16)
+ dst = blocks.wavfile_sink(args[0], 2, int(options.sample_rate), 16)
self.connect(src0, head0, (dst, 0))
self.connect(src1, head1, (dst, 1))