summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnuradio-core/src/lib/swig/gnuradio.i5
-rw-r--r--gnuradio-examples/waveforms/dial-tone.wfd4
2 files changed, 7 insertions, 2 deletions
diff --git a/gnuradio-core/src/lib/swig/gnuradio.i b/gnuradio-core/src/lib/swig/gnuradio.i
index 1601cca12..1856d5007 100644
--- a/gnuradio-core/src/lib/swig/gnuradio.i
+++ b/gnuradio-core/src/lib/swig/gnuradio.i
@@ -37,6 +37,11 @@
%feature("autodoc","1");
+#ifdef SWIGGUILE
+// Export constants and enums as scheme variables, not functions.
+%feature("constasvar");
+#endif
+
// local file
%include <gr_shared_ptr.i>
diff --git a/gnuradio-examples/waveforms/dial-tone.wfd b/gnuradio-examples/waveforms/dial-tone.wfd
index ced3df572..5ab60075a 100644
--- a/gnuradio-examples/waveforms/dial-tone.wfd
+++ b/gnuradio-examples/waveforms/dial-tone.wfd
@@ -30,8 +30,8 @@
(ampl 0.1))
(blocks
- (src0 (gr:sig-source-f sample-rate (gr:GR-SIN-WAVE) 350 ampl))
- (src1 (gr:sig-source-f sample-rate (gr:GR-SIN-WAVE) 440 ampl))
+ (src0 (gr:sig-source-f sample-rate gr:GR-SIN-WAVE 350 ampl))
+ (src1 (gr:sig-source-f sample-rate gr:GR-SIN-WAVE 440 ampl))
(sink (gr:audio-alsa-sink sample-rate "plughw:0,0"))
)