summaryrefslogtreecommitdiff
path: root/gr-audio/examples/c++/dial_tone.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-audio/examples/c++/dial_tone.cc')
-rw-r--r--gr-audio/examples/c++/dial_tone.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/gr-audio/examples/c++/dial_tone.cc b/gr-audio/examples/c++/dial_tone.cc
index 4cd0ff59cf..f866edfdee 100644
--- a/gr-audio/examples/c++/dial_tone.cc
+++ b/gr-audio/examples/c++/dial_tone.cc
@@ -1,5 +1,5 @@
/*
- * Copyright 2011 Free Software Foundation, Inc.
+ * Copyright 2011,2013 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
@@ -38,8 +38,10 @@
// Include header files for each block used in flowgraph
#include <gr_top_block.h>
-#include <gr_sig_source_f.h>
-#include <gr_audio_sink.h>
+#include <analog/sig_source_f.h>
+#include <audio/sink.h>
+
+using namespace gr;
int main(int argc, char **argv)
{
@@ -52,11 +54,11 @@ int main(int argc, char **argv)
gr_top_block_sptr tb = gr_make_top_block("dial_tone");
// Construct a real-valued signal source for each tone, at given sample rate
- gr_sig_source_f_sptr src0 = gr_make_sig_source_f(rate, GR_SIN_WAVE, 350, ampl);
- gr_sig_source_f_sptr src1 = gr_make_sig_source_f(rate, GR_SIN_WAVE, 440, ampl);
+ analog::sig_source_f::sptr src0 = analog::sig_source_f::make(rate, analog::GR_SIN_WAVE, 350, ampl);
+ analog::sig_source_f::sptr src1 = analog::sig_source_f::make(rate, analog::GR_SIN_WAVE, 440, ampl);
// Construct an audio sink to accept audio tones
- audio_sink::sptr sink = audio_make_sink(rate);
+ audio::sink::sptr sink = audio::sink::make(rate);
// Connect output #0 of src0 to input #0 of sink (left channel)
tb->connect(src0, 0, sink, 0);