diff options
author | jcorgan | 2007-04-28 02:20:28 +0000 |
---|---|---|
committer | jcorgan | 2007-04-28 02:20:28 +0000 |
commit | b26ea69676c09f5366a9e2f33b11ae5a7521ffe5 (patch) | |
tree | 0641c1c25d6e827f70941e07f4611d0a2b6b83cd /gnuradio-examples/c++/dial_tone/dial_tone.cc | |
parent | 00696b9f754338de9362932c1ecfb1e144a38786 (diff) | |
download | gnuradio-b26ea69676c09f5366a9e2f33b11ae5a7521ffe5.tar.gz gnuradio-b26ea69676c09f5366a9e2f33b11ae5a7521ffe5.tar.bz2 gnuradio-b26ea69676c09f5366a9e2f33b11ae5a7521ffe5.zip |
Merged -r 5137:5174 from developer branch jcorgan/hb. Trunk passes distcheck. Converts gr.hier_block2 API to not use 'define_component' methodology anymore.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@5177 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-examples/c++/dial_tone/dial_tone.cc')
-rw-r--r-- | gnuradio-examples/c++/dial_tone/dial_tone.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gnuradio-examples/c++/dial_tone/dial_tone.cc b/gnuradio-examples/c++/dial_tone/dial_tone.cc index ecd46cdde..5efe22b76 100644 --- a/gnuradio-examples/c++/dial_tone/dial_tone.cc +++ b/gnuradio-examples/c++/dial_tone/dial_tone.cc @@ -36,10 +36,10 @@ gr_hier_block2("dial_tone", gr_make_io_signature(0,0,0), gr_make_io_signature(0,0,0)) { - define_component("source0", gr_make_sig_source_f(48000, GR_SIN_WAVE, 350, 0.1)); - define_component("source1", gr_make_sig_source_f(48000, GR_SIN_WAVE, 440, 0.1)); - define_component("sink", audio_alsa_make_sink(48000)); + gr_sig_source_f_sptr src0 = gr_make_sig_source_f(48000, GR_SIN_WAVE, 350, 0.1); + gr_sig_source_f_sptr src1 = gr_make_sig_source_f(48000, GR_SIN_WAVE, 440, 0.1); + audio_alsa_sink_sptr sink = audio_alsa_make_sink(48000); - connect("source0", 0, "sink", 0); - connect("source1", 0, "sink", 1); + connect(src0, 0, sink, 0); + connect(src1, 0, sink, 1); } |