[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuradio-commit
Subject:    [Commit-gnuradio] r5174 - gnuradio/branches/developers/jcorgan/hb/gnuradio-examples/c++/dial_tone
From:       jcorgan () gnuradio ! org
Date:       2007-04-28 1:51:15
Message-ID: 20070428015115.A28CB38005F () nyquist ! gnuradio ! org
[Download RAW message or body]

Author: jcorgan
Date: 2007-04-27 19:51:15 -0600 (Fri, 27 Apr 2007)
New Revision: 5174

Modified:
   gnuradio/branches/developers/jcorgan/hb/gnuradio-examples/c++/dial_tone/dial_tone.cc
 Log:
Converted c++ hier example to new API.

Modified: gnuradio/branches/developers/jcorgan/hb/gnuradio-examples/c++/dial_tone/dial_tone.cc
 ===================================================================
--- gnuradio/branches/developers/jcorgan/hb/gnuradio-examples/c++/dial_tone/dial_tone.cc	2007-04-28 \
                01:39:28 UTC (rev 5173)
+++ gnuradio/branches/developers/jcorgan/hb/gnuradio-examples/c++/dial_tone/dial_tone.cc	2007-04-28 \
01:51:15 UTC (rev 5174) @@ -36,10 +36,10 @@
 	       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);
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic