summaryrefslogtreecommitdiff
path: root/gr-audio
diff options
context:
space:
mode:
Diffstat (limited to 'gr-audio')
-rw-r--r--gr-audio/.gitignore3
-rw-r--r--gr-audio/CMakeLists.txt20
-rw-r--r--gr-audio/Makefile.am31
-rw-r--r--gr-audio/doc/.gitignore2
-rw-r--r--gr-audio/doc/CMakeLists.txt8
-rw-r--r--gr-audio/doc/Makefile.am27
-rw-r--r--gr-audio/doc/README.audio2
-rw-r--r--gr-audio/examples/.gitignore2
-rw-r--r--gr-audio/examples/Makefile.am28
-rw-r--r--gr-audio/examples/c++/.gitignore3
-rw-r--r--gr-audio/examples/c++/CMakeLists.txt14
-rw-r--r--gr-audio/examples/c++/Makefile.am40
-rw-r--r--gr-audio/examples/c++/dial_tone.cc8
-rw-r--r--gr-audio/examples/grc/CMakeLists.txt (renamed from gr-audio/include/Makefile.am)22
-rw-r--r--gr-audio/examples/grc/cvsd_sweep.grc918
-rw-r--r--gr-audio/examples/grc/dial_tone.grc375
-rw-r--r--gr-audio/examples/python/.gitignore4
-rw-r--r--gr-audio/examples/python/CMakeLists.txt2
-rw-r--r--gr-audio/examples/python/Makefile.am38
-rwxr-xr-xgr-audio/examples/python/audio_copy.py12
-rwxr-xr-xgr-audio/examples/python/audio_fft.py26
-rwxr-xr-xgr-audio/examples/python/audio_play.py10
-rwxr-xr-xgr-audio/examples/python/audio_to_file.py12
-rwxr-xr-xgr-audio/examples/python/dial_tone.py10
-rwxr-xr-xgr-audio/examples/python/dial_tone_daemon.py10
-rwxr-xr-xgr-audio/examples/python/dial_tone_wav.py10
-rwxr-xr-xgr-audio/examples/python/mono_tone.py12
-rwxr-xr-xgr-audio/examples/python/multi_tone.py12
-rwxr-xr-xgr-audio/examples/python/noise.py10
-rwxr-xr-xgr-audio/examples/python/spectrum_inversion.py8
-rwxr-xr-xgr-audio/examples/python/test_resampler.py10
-rw-r--r--gr-audio/grc/.gitignore2
-rw-r--r--gr-audio/grc/CMakeLists.txt8
-rw-r--r--gr-audio/grc/Makefile.am29
-rw-r--r--gr-audio/include/.gitignore2
-rw-r--r--gr-audio/include/CMakeLists.txt8
-rw-r--r--gr-audio/include/gr_audio_api.h8
-rw-r--r--gr-audio/include/gr_audio_sink.h8
-rw-r--r--gr-audio/include/gr_audio_source.h8
-rw-r--r--gr-audio/lib/.gitignore2
-rw-r--r--gr-audio/lib/CMakeLists.txt8
-rw-r--r--gr-audio/lib/Makefile.am185
-rw-r--r--gr-audio/lib/alsa/audio_alsa_sink.cc42
-rw-r--r--gr-audio/lib/alsa/audio_alsa_sink.h10
-rw-r--r--gr-audio/lib/alsa/audio_alsa_source.cc36
-rw-r--r--gr-audio/lib/alsa/audio_alsa_source.h10
-rw-r--r--gr-audio/lib/alsa/gri_alsa.cc12
-rw-r--r--gr-audio/lib/alsa/gri_alsa.h10
-rw-r--r--gr-audio/lib/gr_audio_registry.cc8
-rw-r--r--gr-audio/lib/gr_audio_registry.h8
-rw-r--r--gr-audio/lib/jack/audio_jack_sink.cc26
-rw-r--r--gr-audio/lib/jack/audio_jack_sink.h10
-rw-r--r--gr-audio/lib/jack/audio_jack_source.cc22
-rw-r--r--gr-audio/lib/jack/audio_jack_source.h10
-rw-r--r--gr-audio/lib/jack/gri_jack.cc8
-rw-r--r--gr-audio/lib/jack/gri_jack.h8
-rw-r--r--gr-audio/lib/oss/audio_oss_sink.cc14
-rw-r--r--gr-audio/lib/oss/audio_oss_sink.h10
-rw-r--r--gr-audio/lib/oss/audio_oss_source.cc14
-rw-r--r--gr-audio/lib/oss/audio_oss_source.h10
-rw-r--r--gr-audio/lib/osx/audio_osx.h6
-rw-r--r--gr-audio/lib/osx/audio_osx_sink.cc22
-rw-r--r--gr-audio/lib/osx/audio_osx_sink.h16
-rw-r--r--gr-audio/lib/osx/audio_osx_source.cc24
-rw-r--r--gr-audio/lib/osx/audio_osx_source.h8
-rw-r--r--gr-audio/lib/osx/circular_buffer.h6
-rw-r--r--gr-audio/lib/portaudio/audio_portaudio_sink.cc22
-rw-r--r--gr-audio/lib/portaudio/audio_portaudio_sink.h10
-rw-r--r--gr-audio/lib/portaudio/audio_portaudio_source.cc24
-rw-r--r--gr-audio/lib/portaudio/audio_portaudio_source.h10
-rw-r--r--gr-audio/lib/portaudio/gri_portaudio.cc12
-rw-r--r--gr-audio/lib/portaudio/gri_portaudio.h8
-rw-r--r--gr-audio/swig/.gitignore5
-rw-r--r--gr-audio/swig/CMakeLists.txt8
-rw-r--r--gr-audio/swig/Makefile.am71
-rw-r--r--gr-audio/swig/Makefile.swig.gen145
-rw-r--r--gr-audio/swig/__init__.py8
-rw-r--r--gr-audio/swig/audio_swig.i8
78 files changed, 1664 insertions, 974 deletions
diff --git a/gr-audio/.gitignore b/gr-audio/.gitignore
deleted file mode 100644
index a37fc0c1a..000000000
--- a/gr-audio/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-/Makefile
-/Makefile.in
-/*.pc
diff --git a/gr-audio/CMakeLists.txt b/gr-audio/CMakeLists.txt
index 7038b9b0f..35fd7fc23 100644
--- a/gr-audio/CMakeLists.txt
+++ b/gr-audio/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
@@ -33,6 +33,8 @@ GR_REGISTER_COMPONENT("gr-audio" ENABLE_GR_AUDIO
GR_SET_GLOBAL(GR_AUDIO_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include)
+SET(GR_PKG_AUDIO_EXAMPLES_DIR ${GR_PKG_DATA_DIR}/examples/audio)
+
########################################################################
# Begin conditional configuration
########################################################################
@@ -65,6 +67,13 @@ CPACK_COMPONENT("audio_python"
DEPENDS "core_python;audio_runtime"
)
+CPACK_COMPONENT("audio_examples"
+ GROUP "Audio"
+ DISPLAY_NAME "Examples"
+ DESCRIPTION "Example programs"
+ DEPENDS "audio_runtime"
+)
+
CPACK_COMPONENT("audio_swig"
GROUP "Audio"
DISPLAY_NAME "SWIG"
@@ -77,12 +86,13 @@ CPACK_COMPONENT("audio_swig"
########################################################################
add_subdirectory(include)
add_subdirectory(lib)
-add_subdirectory(examples/c++)
add_subdirectory(doc)
+add_subdirectory(examples/c++)
if(ENABLE_PYTHON)
add_subdirectory(swig)
add_subdirectory(grc)
add_subdirectory(examples/python)
+ add_subdirectory(examples/grc)
endif(ENABLE_PYTHON)
########################################################################
diff --git a/gr-audio/Makefile.am b/gr-audio/Makefile.am
deleted file mode 100644
index da4106c23..000000000
--- a/gr-audio/Makefile.am
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# Copyright 2011 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street,
-# Boston, MA 02110-1301, USA.
-#
-
-include $(top_srcdir)/Makefile.common
-
-SUBDIRS = include lib examples doc
-
-if PYTHON
-SUBDIRS += grc swig
-endif
-
-pkgconfigdir = $(libdir)/pkgconfig
-dist_pkgconfig_DATA = gnuradio-audio.pc
diff --git a/gr-audio/doc/.gitignore b/gr-audio/doc/.gitignore
deleted file mode 100644
index b336cc7ce..000000000
--- a/gr-audio/doc/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/Makefile
-/Makefile.in
diff --git a/gr-audio/doc/CMakeLists.txt b/gr-audio/doc/CMakeLists.txt
index f4e6c4a07..483554a0e 100644
--- a/gr-audio/doc/CMakeLists.txt
+++ b/gr-audio/doc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gr-audio/doc/Makefile.am b/gr-audio/doc/Makefile.am
deleted file mode 100644
index 959a9044f..000000000
--- a/gr-audio/doc/Makefile.am
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# Copyright 2011 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street,
-# Boston, MA 02110-1301, USA.
-#
-
-include $(top_srcdir)/Makefile.common
-
-SUBDIRS =
-
-dist_gr_doc_DATA = \
- README.audio
diff --git a/gr-audio/doc/README.audio b/gr-audio/doc/README.audio
index ebd0fe5d7..754c849c8 100644
--- a/gr-audio/doc/README.audio
+++ b/gr-audio/doc/README.audio
@@ -14,7 +14,7 @@ based on the system it is run on. Import this package with:
See the Doxygen documentation for details about the blocks available
in this package. A quick listing of the details can be found in Python
-after importing by using:
+after importing by using:
help(audio)
diff --git a/gr-audio/examples/.gitignore b/gr-audio/examples/.gitignore
deleted file mode 100644
index b336cc7ce..000000000
--- a/gr-audio/examples/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/Makefile
-/Makefile.in
diff --git a/gr-audio/examples/Makefile.am b/gr-audio/examples/Makefile.am
deleted file mode 100644
index a2365d403..000000000
--- a/gr-audio/examples/Makefile.am
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-# Copyright 2011 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street,
-# Boston, MA 02110-1301, USA.
-#
-
-include $(top_srcdir)/Makefile.common
-
-SUBDIRS = c++
-
-if PYTHON
-SUBDIRS += python
-endif
diff --git a/gr-audio/examples/c++/.gitignore b/gr-audio/examples/c++/.gitignore
deleted file mode 100644
index bb08aaf91..000000000
--- a/gr-audio/examples/c++/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-/Makefile
-/Makefile.in
-/dial_tone
diff --git a/gr-audio/examples/c++/CMakeLists.txt b/gr-audio/examples/c++/CMakeLists.txt
index 38490cce8..f0d45817c 100644
--- a/gr-audio/examples/c++/CMakeLists.txt
+++ b/gr-audio/examples/c++/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
@@ -21,3 +21,9 @@ include_directories(${GR_AUDIO_INCLUDE_DIRS})
include_directories(${GNURADIO_CORE_INCLUDE_DIRS})
add_executable(dial_tone dial_tone.cc)
target_link_libraries(dial_tone gnuradio-audio)
+
+INSTALL(TARGETS
+ dial_tone
+ DESTINATION ${GR_PKG_AUDIO_EXAMPLES_DIR}
+ COMPONENT "audio_examples"
+)
diff --git a/gr-audio/examples/c++/Makefile.am b/gr-audio/examples/c++/Makefile.am
deleted file mode 100644
index d3283354f..000000000
--- a/gr-audio/examples/c++/Makefile.am
+++ /dev/null
@@ -1,40 +0,0 @@
-#
-# Copyright 2011 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street,
-# Boston, MA 02110-1301, USA.
-#
-
-include $(top_srcdir)/Makefile.common
-
-# For compiling with the GNU Radio build tree, use include dir below.
-# For compiling outside the tree, use 'pkg-config --cflags gnuradio-audio'
-AM_CPPFLAGS = \
- -I$(top_srcdir)/gr-audio/include \
- $(STD_DEFINES_AND_INCLUDES) \
- $(WITH_INCLUDES)
-
-# For compiling within the GNU Radio build tree, link against GR_AUDIO_LA
-# For compiling outside the tree, use 'pkg-config --libs gnuradio-audio'
-GR_AUDIO_LA=$(top_builddir)/gr-audio/lib/libgnuradio-audio.la
-
-noinst_PROGRAMS = dial_tone
-
-dial_tone_SOURCES = dial_tone.cc
-dial_tone_LDADD = \
- $(GNURADIO_CORE_LA) $(GR_AUDIO_LA) \
- $(BOOST_FILESYSTEM_LIB)
diff --git a/gr-audio/examples/c++/dial_tone.cc b/gr-audio/examples/c++/dial_tone.cc
index e4e3d8ceb..4cd0ff59c 100644
--- a/gr-audio/examples/c++/dial_tone.cc
+++ b/gr-audio/examples/c++/dial_tone.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gr-audio/include/Makefile.am b/gr-audio/examples/grc/CMakeLists.txt
index a4db27d08..179b42fcc 100644
--- a/gr-audio/include/Makefile.am
+++ b/gr-audio/examples/grc/CMakeLists.txt
@@ -1,27 +1,27 @@
+# Copyright 2012 Free Software Foundation, Inc.
#
-# Copyright 2011 Free Software Foundation, Inc.
-#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
-include $(top_srcdir)/Makefile.common
+install(
+ FILES
+ cvsd_sweep.grc
+ dial_tone.grc
+ DESTINATION ${GR_PKG_AUDIO_EXAMPLES_DIR}
+ COMPONENT "audio_python"
+)
-grinclude_HEADERS = \
- gr_audio_api.h \
- gr_audio_source.h \
- gr_audio_sink.h
diff --git a/gr-audio/examples/grc/cvsd_sweep.grc b/gr-audio/examples/grc/cvsd_sweep.grc
new file mode 100644
index 000000000..b645b747a
--- /dev/null
+++ b/gr-audio/examples/grc/cvsd_sweep.grc
@@ -0,0 +1,918 @@
+<?xml version='1.0' encoding='ASCII'?>
+<flow_graph>
+ <timestamp>Sat Sep 19 20:30:08 2009</timestamp>
+ <block>
+ <key>import</key>
+ <param>
+ <key>id</key>
+ <value>import_0</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>import</key>
+ <value>import math</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(157, 11)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>vocoder_cvsd_decode_bf</key>
+ <param>
+ <key>id</key>
+ <value>vocoder_cvsd_decode_bf_0</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>resample</key>
+ <value>resample</value>
+ </param>
+ <param>
+ <key>bw</key>
+ <value>bw</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(887, 340)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>gr_sig_source_x</key>
+ <param>
+ <key>id</key>
+ <value>tri_source</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>float</value>
+ </param>
+ <param>
+ <key>samp_rate</key>
+ <value>audio_rate</value>
+ </param>
+ <param>
+ <key>waveform</key>
+ <value>gr.GR_TRI_WAVE</value>
+ </param>
+ <param>
+ <key>freq</key>
+ <value>0.05</value>
+ </param>
+ <param>
+ <key>amp</key>
+ <value>0.5</value>
+ </param>
+ <param>
+ <key>offset</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(44, 316)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>gr_throttle</key>
+ <param>
+ <key>id</key>
+ <value>throttle</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>float</value>
+ </param>
+ <param>
+ <key>samples_per_second</key>
+ <value>audio_rate</value>
+ </param>
+ <param>
+ <key>vlen</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(238, 348)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>gr_vco_f</key>
+ <param>
+ <key>id</key>
+ <value>vco</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>samp_rate</key>
+ <value>audio_rate</value>
+ </param>
+ <param>
+ <key>sensitivity</key>
+ <value>audio_rate*2*math.pi</value>
+ </param>
+ <param>
+ <key>amplitude</key>
+ <value>0.9</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(427, 332)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>vocoder_cvsd_encode_fb</key>
+ <param>
+ <key>id</key>
+ <value>enc</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>resample</key>
+ <value>resample</value>
+ </param>
+ <param>
+ <key>bw</key>
+ <value>bw</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(655, 340)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>gr_packed_to_unpacked_xx</key>
+ <param>
+ <key>id</key>
+ <value>p2u</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>byte</value>
+ </param>
+ <param>
+ <key>bits_per_chunk</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>endianness</key>
+ <value>gr.GR_MSB_FIRST</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(648, 415)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>180</value>
+ </param>
+ </block>
+ <block>
+ <key>gr_char_to_float</key>
+ <param>
+ <key>id</key>
+ <value>c2f</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(676, 483)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>audio_sink</key>
+ <param>
+ <key>id</key>
+ <value>audio_sink</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>samp_rate</key>
+ <value>audio_rate</value>
+ </param>
+ <param>
+ <key>device_name</key>
+ <value>plughw:0,0</value>
+ </param>
+ <param>
+ <key>ok_to_block</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>num_inputs</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(1127, 340)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>variable</key>
+ <param>
+ <key>id</key>
+ <value>audio_rate</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>value</key>
+ <value>8000</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(251, 10)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>variable</key>
+ <param>
+ <key>id</key>
+ <value>resample</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>value</key>
+ <value>8</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(344, 11)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>variable</key>
+ <param>
+ <key>id</key>
+ <value>bw</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>value</key>
+ <value>0.5</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(431, 11)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>notebook</key>
+ <param>
+ <key>id</key>
+ <value>displays</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>style</key>
+ <value>wx.NB_TOP</value>
+ </param>
+ <param>
+ <key>labels</key>
+ <value>['Original','Encoded','Decoded']</value>
+ </param>
+ <param>
+ <key>grid_pos</key>
+ <value></value>
+ </param>
+ <param>
+ <key>notebook</key>
+ <value></value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(12, 106)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>wxgui_fftsink2</key>
+ <param>
+ <key>id</key>
+ <value>orig_fft</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>float</value>
+ </param>
+ <param>
+ <key>title</key>
+ <value>Original Spectrum</value>
+ </param>
+ <param>
+ <key>samp_rate</key>
+ <value>audio_rate</value>
+ </param>
+ <param>
+ <key>baseband_freq</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>y_per_div</key>
+ <value>10</value>
+ </param>
+ <param>
+ <key>y_divs</key>
+ <value>10</value>
+ </param>
+ <param>
+ <key>ref_level</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>ref_scale</key>
+ <value>2.0</value>
+ </param>
+ <param>
+ <key>fft_size</key>
+ <value>1024</value>
+ </param>
+ <param>
+ <key>fft_rate</key>
+ <value>30</value>
+ </param>
+ <param>
+ <key>peak_hold</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>average</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>avg_alpha</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>grid_pos</key>
+ <value>0, 0, 1, 1</value>
+ </param>
+ <param>
+ <key>notebook</key>
+ <value>displays, 0</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(415, 97)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>180</value>
+ </param>
+ </block>
+ <block>
+ <key>wxgui_scopesink2</key>
+ <param>
+ <key>id</key>
+ <value>orig_scope</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>float</value>
+ </param>
+ <param>
+ <key>title</key>
+ <value>Original Waveform</value>
+ </param>
+ <param>
+ <key>samp_rate</key>
+ <value>audio_rate</value>
+ </param>
+ <param>
+ <key>v_scale</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>t_scale</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>ac_couple</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>xy_mode</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>num_inputs</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>grid_pos</key>
+ <value>1, 0, 1, 1</value>
+ </param>
+ <param>
+ <key>notebook</key>
+ <value>displays, 0</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(414, 425)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>180</value>
+ </param>
+ </block>
+ <block>
+ <key>wxgui_fftsink2</key>
+ <param>
+ <key>id</key>
+ <value>enc_fft</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>float</value>
+ </param>
+ <param>
+ <key>title</key>
+ <value>Encoded Spectrum</value>
+ </param>
+ <param>
+ <key>samp_rate</key>
+ <value>audio_rate*resample</value>
+ </param>
+ <param>
+ <key>baseband_freq</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>y_per_div</key>
+ <value>10</value>
+ </param>
+ <param>
+ <key>y_divs</key>
+ <value>8</value>
+ </param>
+ <param>
+ <key>ref_level</key>
+ <value>10</value>
+ </param>
+ <param>
+ <key>ref_scale</key>
+ <value>2.0</value>
+ </param>
+ <param>
+ <key>fft_size</key>
+ <value>1024</value>
+ </param>
+ <param>
+ <key>fft_rate</key>
+ <value>30</value>
+ </param>
+ <param>
+ <key>peak_hold</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>average</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>avg_alpha</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>grid_pos</key>
+ <value>1, 0, 1, 1</value>
+ </param>
+ <param>
+ <key>notebook</key>
+ <value>displays, 1</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(610, 551)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>180</value>
+ </param>
+ </block>
+ <block>
+ <key>wxgui_scopesink2</key>
+ <param>
+ <key>id</key>
+ <value>enc_scope</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>float</value>
+ </param>
+ <param>
+ <key>title</key>
+ <value>Encoded Waveform</value>
+ </param>
+ <param>
+ <key>samp_rate</key>
+ <value>audio_rate*resample</value>
+ </param>
+ <param>
+ <key>v_scale</key>
+ <value>0.5</value>
+ </param>
+ <param>
+ <key>t_scale</key>
+ <value>20.0/(audio_rate*resample)</value>
+ </param>
+ <param>
+ <key>ac_couple</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>xy_mode</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>num_inputs</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>grid_pos</key>
+ <value>0, 0, 1, 1</value>
+ </param>
+ <param>
+ <key>notebook</key>
+ <value>displays, 1</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(858, 591)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>wxgui_fftsink2</key>
+ <param>
+ <key>id</key>
+ <value>dec_fft</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>float</value>
+ </param>
+ <param>
+ <key>title</key>
+ <value>Decoded Spectrum</value>
+ </param>
+ <param>
+ <key>samp_rate</key>
+ <value>audio_rate</value>
+ </param>
+ <param>
+ <key>baseband_freq</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>y_per_div</key>
+ <value>5</value>
+ </param>
+ <param>
+ <key>y_divs</key>
+ <value>10</value>
+ </param>
+ <param>
+ <key>ref_level</key>
+ <value>10</value>
+ </param>
+ <param>
+ <key>ref_scale</key>
+ <value>0.1</value>
+ </param>
+ <param>
+ <key>fft_size</key>
+ <value>1024</value>
+ </param>
+ <param>
+ <key>fft_rate</key>
+ <value>30</value>
+ </param>
+ <param>
+ <key>peak_hold</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>average</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>avg_alpha</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>grid_pos</key>
+ <value>0, 0, 1, 1</value>
+ </param>
+ <param>
+ <key>notebook</key>
+ <value>displays, 2</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(891, 98)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>180</value>
+ </param>
+ </block>
+ <block>
+ <key>wxgui_scopesink2</key>
+ <param>
+ <key>id</key>
+ <value>dec_scope</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>float</value>
+ </param>
+ <param>
+ <key>title</key>
+ <value>Decoded Waveform</value>
+ </param>
+ <param>
+ <key>samp_rate</key>
+ <value>audio_rate</value>
+ </param>
+ <param>
+ <key>v_scale</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>t_scale</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>ac_couple</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>xy_mode</key>
+ <value>False</value>
+ </param>
+ <param>
+ <key>num_inputs</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>grid_pos</key>
+ <value>1, 0, 1, 1</value>
+ </param>
+ <param>
+ <key>notebook</key>
+ <value>displays, 2</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(889, 422)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>180</value>
+ </param>
+ </block>
+ <block>
+ <key>options</key>
+ <param>
+ <key>id</key>
+ <value>cvsd_sweep</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>title</key>
+ <value>CVSD Vocoder Test</value>
+ </param>
+ <param>
+ <key>author</key>
+ <value></value>
+ </param>
+ <param>
+ <key>description</key>
+ <value></value>
+ </param>
+ <param>
+ <key>window_size</key>
+ <value>1280, 1024</value>
+ </param>
+ <param>
+ <key>generate_options</key>
+ <value>wx_gui</value>
+ </param>
+ <param>
+ <key>category</key>
+ <value>Custom</value>
+ </param>
+ <param>
+ <key>run</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>realtime_scheduling</key>
+ <value></value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(10, 10)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <connection>
+ <source_block_id>vco</source_block_id>
+ <sink_block_id>orig_fft</sink_block_id>
+ <source_key>0</source_key>
+ <sink_key>0</sink_key>
+ </connection>
+ <connection>
+ <source_block_id>tri_source</source_block_id>
+ <sink_block_id>throttle</sink_block_id>
+ <source_key>0</source_key>
+ <sink_key>0</sink_key>
+ </connection>
+ <connection>
+ <source_block_id>throttle</source_block_id>
+ <sink_block_id>vco</sink_block_id>
+ <source_key>0</source_key>
+ <sink_key>0</sink_key>
+ </connection>
+ <connection>
+ <source_block_id>vco</source_block_id>
+ <sink_block_id>enc</sink_block_id>
+ <source_key>0</source_key>
+ <sink_key>0</sink_key>
+ </connection>
+ <connection>
+ <source_block_id>enc</source_block_id>
+ <sink_block_id>vocoder_cvsd_decode_bf_0</sink_block_id>
+ <source_key>0</source_key>
+ <sink_key>0</sink_key>
+ </connection>
+ <connection>
+ <source_block_id>vco</source_block_id>
+ <sink_block_id>orig_scope</sink_block_id>
+ <source_key>0</source_key>
+ <sink_key>0</sink_key>
+ </connection>
+ <connection>
+ <source_block_id>vocoder_cvsd_decode_bf_0</source_block_id>
+ <sink_block_id>dec_fft</sink_block_id>
+ <source_key>0</source_key>
+ <sink_key>0</sink_key>
+ </connection>
+ <connection>
+ <source_block_id>vocoder_cvsd_decode_bf_0</source_block_id>
+ <sink_block_id>dec_scope</sink_block_id>
+ <source_key>0</source_key>
+ <sink_key>0</sink_key>
+ </connection>
+ <connection>
+ <source_block_id>vocoder_cvsd_decode_bf_0</source_block_id>
+ <sink_block_id>audio_sink</sink_block_id>
+ <source_key>0</source_key>
+ <sink_key>0</sink_key>
+ </connection>
+ <connection>
+ <source_block_id>enc</source_block_id>
+ <sink_block_id>p2u</sink_block_id>
+ <source_key>0</source_key>
+ <sink_key>0</sink_key>
+ </connection>
+ <connection>
+ <source_block_id>p2u</source_block_id>
+ <sink_block_id>c2f</sink_block_id>
+ <source_key>0</source_key>
+ <sink_key>0</sink_key>
+ </connection>
+ <connection>
+ <source_block_id>c2f</source_block_id>
+ <sink_block_id>enc_fft</sink_block_id>
+ <source_key>0</source_key>
+ <sink_key>0</sink_key>
+ </connection>
+ <connection>
+ <source_block_id>c2f</source_block_id>
+ <sink_block_id>enc_scope</sink_block_id>
+ <source_key>0</source_key>
+ <sink_key>0</sink_key>
+ </connection>
+</flow_graph>
diff --git a/gr-audio/examples/grc/dial_tone.grc b/gr-audio/examples/grc/dial_tone.grc
new file mode 100644
index 000000000..ac8cbef27
--- /dev/null
+++ b/gr-audio/examples/grc/dial_tone.grc
@@ -0,0 +1,375 @@
+<?xml version='1.0' encoding='ASCII'?>
+<flow_graph>
+ <timestamp>Thu Jul 24 14:27:48 2008</timestamp>
+ <block>
+ <key>options</key>
+ <param>
+ <key>id</key>
+ <value>dial_tone</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>title</key>
+ <value>Dial Tone</value>
+ </param>
+ <param>
+ <key>author</key>
+ <value>Example</value>
+ </param>
+ <param>
+ <key>description</key>
+ <value>example flow graph</value>
+ </param>
+ <param>
+ <key>window_size</key>
+ <value>1280, 1024</value>
+ </param>
+ <param>
+ <key>generate_options</key>
+ <value>wx_gui</value>
+ </param>
+ <param>
+ <key>category</key>
+ <value>Custom</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(10, 10)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>gr_add_xx</key>
+ <param>
+ <key>id</key>
+ <value>gr_add_xx</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>float</value>
+ </param>
+ <param>
+ <key>num_inputs</key>
+ <value>3</value>
+ </param>
+ <param>
+ <key>vlen</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(513, 277)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>audio_sink</key>
+ <param>
+ <key>id</key>
+ <value>audio_sink</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>samp_rate</key>
+ <value>32000</value>
+ </param>
+ <param>
+ <key>device_name</key>
+ <value/>
+ </param>
+ <param>
+ <key>ok_to_block</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>num_inputs</key>
+ <value>1</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(699, 112)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>gr_noise_source_x</key>
+ <param>
+ <key>id</key>
+ <value>gr_noise_source_x</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>float</value>
+ </param>
+ <param>
+ <key>noise_type</key>
+ <value>gr.GR_GAUSSIAN</value>
+ </param>
+ <param>
+ <key>amp</key>
+ <value>noise</value>
+ </param>
+ <param>
+ <key>seed</key>
+ <value>42</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(238, 380)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>gr_sig_source_x</key>
+ <param>
+ <key>id</key>
+ <value>gr_sig_source_x</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>float</value>
+ </param>
+ <param>
+ <key>samp_rate</key>
+ <value>samp_rate</value>
+ </param>
+ <param>
+ <key>waveform</key>
+ <value>gr.GR_COS_WAVE</value>
+ </param>
+ <param>
+ <key>freq</key>
+ <value>440</value>
+ </param>
+ <param>
+ <key>amp</key>
+ <value>ampl</value>
+ </param>
+ <param>
+ <key>offset</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(240, 208)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>gr_sig_source_x</key>
+ <param>
+ <key>id</key>
+ <value>gr_sig_source_x0</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>type</key>
+ <value>float</value>
+ </param>
+ <param>
+ <key>samp_rate</key>
+ <value>samp_rate</value>
+ </param>
+ <param>
+ <key>waveform</key>
+ <value>gr.GR_COS_WAVE</value>
+ </param>
+ <param>
+ <key>freq</key>
+ <value>350</value>
+ </param>
+ <param>
+ <key>amp</key>
+ <value>ampl</value>
+ </param>
+ <param>
+ <key>offset</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(240, 38)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>variable_slider</key>
+ <param>
+ <key>id</key>
+ <value>ampl</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>label</key>
+ <value>Volume</value>
+ </param>
+ <param>
+ <key>value</key>
+ <value>.4</value>
+ </param>
+ <param>
+ <key>min</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>max</key>
+ <value>.5</value>
+ </param>
+ <param>
+ <key>num_steps</key>
+ <value>100</value>
+ </param>
+ <param>
+ <key>slider_type</key>
+ <value>horizontal</value>
+ </param>
+ <param>
+ <key>grid_pos</key>
+ <value>0, 0, 1, 2</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(634, 413)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>variable_slider</key>
+ <param>
+ <key>id</key>
+ <value>noise</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>label</key>
+ <value>Noise</value>
+ </param>
+ <param>
+ <key>value</key>
+ <value>.005</value>
+ </param>
+ <param>
+ <key>min</key>
+ <value>0</value>
+ </param>
+ <param>
+ <key>max</key>
+ <value>.2</value>
+ </param>
+ <param>
+ <key>num_steps</key>
+ <value>100</value>
+ </param>
+ <param>
+ <key>slider_type</key>
+ <value>horizontal</value>
+ </param>
+ <param>
+ <key>grid_pos</key>
+ <value>1, 0, 1, 2</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(443, 412)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <block>
+ <key>variable</key>
+ <param>
+ <key>id</key>
+ <value>samp_rate</value>
+ </param>
+ <param>
+ <key>_enabled</key>
+ <value>True</value>
+ </param>
+ <param>
+ <key>value</key>
+ <value>32000</value>
+ </param>
+ <param>
+ <key>_coordinate</key>
+ <value>(11, 171)</value>
+ </param>
+ <param>
+ <key>_rotation</key>
+ <value>0</value>
+ </param>
+ </block>
+ <connection>
+ <source_block_id>gr_sig_source_x0</source_block_id>
+ <sink_block_id>gr_add_xx</sink_block_id>
+ <source_key>0</source_key>
+ <sink_key>0</sink_key>
+ </connection>
+ <connection>
+ <source_block_id>gr_sig_source_x</source_block_id>
+ <sink_block_id>gr_add_xx</sink_block_id>
+ <source_key>0</source_key>
+ <sink_key>1</sink_key>
+ </connection>
+ <connection>
+ <source_block_id>gr_noise_source_x</source_block_id>
+ <sink_block_id>gr_add_xx</sink_block_id>
+ <source_key>0</source_key>
+ <sink_key>2</sink_key>
+ </connection>
+ <connection>
+ <source_block_id>gr_add_xx</source_block_id>
+ <sink_block_id>audio_sink</sink_block_id>
+ <source_key>0</source_key>
+ <sink_key>0</sink_key>
+ </connection>
+</flow_graph>
diff --git a/gr-audio/examples/python/.gitignore b/gr-audio/examples/python/.gitignore
deleted file mode 100644
index b4813f3c8..000000000
--- a/gr-audio/examples/python/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-/Makefile
-/Makefile.in
-/*.pyc
-/*.pyo
diff --git a/gr-audio/examples/python/CMakeLists.txt b/gr-audio/examples/python/CMakeLists.txt
index 86ba86ac0..24e29e234 100644
--- a/gr-audio/examples/python/CMakeLists.txt
+++ b/gr-audio/examples/python/CMakeLists.txt
@@ -32,6 +32,6 @@ GR_PYTHON_INSTALL(PROGRAMS
noise.py
spectrum_inversion.py
test_resampler.py
- DESTINATION ${GR_PKG_DATA_DIR}/examples/audio
+ DESTINATION ${GR_PKG_AUDIO_EXAMPLES_DIR}
COMPONENT "audio_python"
)
diff --git a/gr-audio/examples/python/Makefile.am b/gr-audio/examples/python/Makefile.am
deleted file mode 100644
index 356b51559..000000000
--- a/gr-audio/examples/python/Makefile.am
+++ /dev/null
@@ -1,38 +0,0 @@
-#
-# Copyright 2004,2009 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street,
-# Boston, MA 02110-1301, USA.
-#
-
-include $(top_srcdir)/Makefile.common
-
-ourdatadir = $(exampledir)/audio
-
-dist_ourdata_SCRIPTS = \
- audio_copy.py \
- audio_fft.py \
- audio_play.py \
- audio_to_file.py \
- dial_tone.py \
- dial_tone_daemon.py \
- dial_tone_wav.py \
- mono_tone.py \
- multi_tone.py \
- noise.py \
- spectrum_inversion.py \
- test_resampler.py
diff --git a/gr-audio/examples/python/audio_copy.py b/gr-audio/examples/python/audio_copy.py
index 3094c9f7a..946aae1c2 100755
--- a/gr-audio/examples/python/audio_copy.py
+++ b/gr-audio/examples/python/audio_copy.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
@@ -61,4 +61,4 @@ if __name__ == '__main__':
my_top_block().run()
except KeyboardInterrupt:
pass
-
+
diff --git a/gr-audio/examples/python/audio_fft.py b/gr-audio/examples/python/audio_fft.py
index 960e0f94d..519963da5 100755
--- a/gr-audio/examples/python/audio_fft.py
+++ b/gr-audio/examples/python/audio_fft.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru, audio
from gnuradio import eng_notation
@@ -34,7 +34,7 @@ class app_top_block(stdgui2.std_top_block):
self.frame = frame
self.panel = panel
-
+
parser = OptionParser(option_class=eng_option)
parser.add_option("-W", "--waterfall", action="store_true", default=False,
help="Enable waterfall display")
@@ -45,15 +45,15 @@ class app_top_block(stdgui2.std_top_block):
parser.add_option("-r", "--sample-rate", type="eng_float", default=48000,
help="set sample rate to RATE (48000)")
- (options, args) = parser.parse_args()
+ (options, args) = parser.parse_args()
sample_rate = int(options.sample_rate)
-
+
if len(args) != 0:
parser.print_help()
sys.exit(1)
self.show_debug_info = True
-
+
# build the graph
if options.waterfall:
self.scope = \
@@ -79,9 +79,9 @@ class app_top_block(stdgui2.std_top_block):
def _form_set_freq(kv):
return self.set_freq(kv['freq'])
-
+
vbox.Add(self.scope.win, 10, wx.EXPAND)
-
+
#self._build_subpanel(vbox)
def _build_subpanel(self, vbox_arg):
@@ -89,7 +89,7 @@ class app_top_block(stdgui2.std_top_block):
# FIXME figure out how to have this be a subpanel that is always
# created, but has its visibility controlled by foo.Show(True/False)
-
+
def _form_set_decim(kv):
return self.set_decim(kv['decim'])
@@ -129,7 +129,7 @@ class app_top_block(stdgui2.std_top_block):
hbox.Add((5,0), 0)
vbox.Add(hbox, 0, wx.EXPAND)
-
+
def main ():
app = stdgui2.stdapp(app_top_block, "Audio FFT", nstatus=1)
app.MainLoop()
diff --git a/gr-audio/examples/python/audio_play.py b/gr-audio/examples/python/audio_play.py
index f9520c7cf..465590f69 100755
--- a/gr-audio/examples/python/audio_play.py
+++ b/gr-audio/examples/python/audio_play.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
diff --git a/gr-audio/examples/python/audio_to_file.py b/gr-audio/examples/python/audio_to_file.py
index 0d54f7bd2..3f7a4f8d1 100755
--- a/gr-audio/examples/python/audio_to_file.py
+++ b/gr-audio/examples/python/audio_to_file.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
@@ -38,7 +38,7 @@ class my_top_block(gr.top_block):
help="set sample rate to RATE (48000)")
parser.add_option("-N", "--nsamples", type="eng_float", default=None,
help="number of samples to collect [default=+inf]")
-
+
(options, args) = parser.parse_args ()
if len(args) != 1:
parser.print_help()
diff --git a/gr-audio/examples/python/dial_tone.py b/gr-audio/examples/python/dial_tone.py
index 65c5e50b2..5661d13d4 100755
--- a/gr-audio/examples/python/dial_tone.py
+++ b/gr-audio/examples/python/dial_tone.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
diff --git a/gr-audio/examples/python/dial_tone_daemon.py b/gr-audio/examples/python/dial_tone_daemon.py
index d30d0e117..b25baebee 100755
--- a/gr-audio/examples/python/dial_tone_daemon.py
+++ b/gr-audio/examples/python/dial_tone_daemon.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007,2008 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru
from gnuradio import audio
diff --git a/gr-audio/examples/python/dial_tone_wav.py b/gr-audio/examples/python/dial_tone_wav.py
index 6e87b2a48..c06af55b7 100755
--- a/gr-audio/examples/python/dial_tone_wav.py
+++ b/gr-audio/examples/python/dial_tone_wav.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007,2008 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
# GNU Radio example program to record a dial tone to a WAV file
diff --git a/gr-audio/examples/python/mono_tone.py b/gr-audio/examples/python/mono_tone.py
index 869c2e5ff..bce486e4a 100755
--- a/gr-audio/examples/python/mono_tone.py
+++ b/gr-audio/examples/python/mono_tone.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
@@ -55,7 +55,7 @@ class my_top_block(gr.top_block):
dst = audio.sink (sample_rate,
options.audio_output,
options.ok_to_block)
-
+
self.connect (src0, (dst, 0))
diff --git a/gr-audio/examples/python/multi_tone.py b/gr-audio/examples/python/multi_tone.py
index 7d47dd5d5..00c213b63 100755
--- a/gr-audio/examples/python/multi_tone.py
+++ b/gr-audio/examples/python/multi_tone.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2006,2007 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
@@ -72,7 +72,7 @@ class my_top_block(gr.top_block):
dst = audio.sink (sample_rate,
options.audio_output,
options.ok_to_block)
-
+
max_chan = dst.input_signature().max_streams()
if (max_chan == -1) or (max_chan > limit_channels):
max_chan = limit_channels
diff --git a/gr-audio/examples/python/noise.py b/gr-audio/examples/python/noise.py
index 75f741082..12eee1906 100755
--- a/gr-audio/examples/python/noise.py
+++ b/gr-audio/examples/python/noise.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
diff --git a/gr-audio/examples/python/spectrum_inversion.py b/gr-audio/examples/python/spectrum_inversion.py
index 021e23f2d..e152430cd 100755
--- a/gr-audio/examples/python/spectrum_inversion.py
+++ b/gr-audio/examples/python/spectrum_inversion.py
@@ -1,19 +1,19 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gr-audio/examples/python/test_resampler.py b/gr-audio/examples/python/test_resampler.py
index 4644c5e2f..db7f79fba 100755
--- a/gr-audio/examples/python/test_resampler.py
+++ b/gr-audio/examples/python/test_resampler.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru, blks2
from gnuradio import audio
diff --git a/gr-audio/grc/.gitignore b/gr-audio/grc/.gitignore
deleted file mode 100644
index b336cc7ce..000000000
--- a/gr-audio/grc/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/Makefile
-/Makefile.in
diff --git a/gr-audio/grc/CMakeLists.txt b/gr-audio/grc/CMakeLists.txt
index a077f7fb4..35c540ad3 100644
--- a/gr-audio/grc/CMakeLists.txt
+++ b/gr-audio/grc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gr-audio/grc/Makefile.am b/gr-audio/grc/Makefile.am
deleted file mode 100644
index 36d9daa7a..000000000
--- a/gr-audio/grc/Makefile.am
+++ /dev/null
@@ -1,29 +0,0 @@
-#
-# Copyright 2011 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street,
-# Boston, MA 02110-1301, USA.
-#
-
-include $(top_srcdir)/Makefile.common
-
-grcblocksdir = $(grc_blocksdir)
-
-dist_grcblocks_DATA = \
- audio_source.xml \
- audio_sink.xml
-
diff --git a/gr-audio/include/.gitignore b/gr-audio/include/.gitignore
deleted file mode 100644
index b336cc7ce..000000000
--- a/gr-audio/include/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/Makefile
-/Makefile.in
diff --git a/gr-audio/include/CMakeLists.txt b/gr-audio/include/CMakeLists.txt
index 6db55e92c..a41506373 100644
--- a/gr-audio/include/CMakeLists.txt
+++ b/gr-audio/include/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gr-audio/include/gr_audio_api.h b/gr-audio/include/gr_audio_api.h
index 65782d308..2ddd0fec6 100644
--- a/gr-audio/include/gr_audio_api.h
+++ b/gr-audio/include/gr_audio_api.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gr-audio/include/gr_audio_sink.h b/gr-audio/include/gr_audio_sink.h
index 7a1caaf80..c2c8bdc30 100644
--- a/gr-audio/include/gr_audio_sink.h
+++ b/gr-audio/include/gr_audio_sink.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gr-audio/include/gr_audio_source.h b/gr-audio/include/gr_audio_source.h
index 8fe2b9b47..0e46ab198 100644
--- a/gr-audio/include/gr_audio_source.h
+++ b/gr-audio/include/gr_audio_source.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gr-audio/lib/.gitignore b/gr-audio/lib/.gitignore
deleted file mode 100644
index b336cc7ce..000000000
--- a/gr-audio/lib/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/Makefile
-/Makefile.in
diff --git a/gr-audio/lib/CMakeLists.txt b/gr-audio/lib/CMakeLists.txt
index 28188a77b..7e0252a8b 100644
--- a/gr-audio/lib/CMakeLists.txt
+++ b/gr-audio/lib/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gr-audio/lib/Makefile.am b/gr-audio/lib/Makefile.am
deleted file mode 100644
index ee2247aa6..000000000
--- a/gr-audio/lib/Makefile.am
+++ /dev/null
@@ -1,185 +0,0 @@
-#
-# Copyright 2011 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street,
-# Boston, MA 02110-1301, USA.
-#
-
-include $(top_srcdir)/Makefile.common
-
-AM_CPPFLAGS = \
- $(STD_DEFINES_AND_INCLUDES) \
- $(WITH_INCLUDES) \
- -I$(abs_top_srcdir)/gr-audio/include \
- -Dgnuradio_audio_EXPORTS
-
-lib_LTLIBRARIES = libgnuradio-audio.la
-
-libgnuradio_audio_la_SOURCES = \
- gr_audio_registry.cc
-
-libgnuradio_audio_la_LIBADD = \
- $(GNURADIO_CORE_LA)
-
-libgnuradio_audio_la_LDFLAGS = $(NO_UNDEFINED) $(LTVERSIONFLAGS)
-
-noinst_HEADERS = gr_audio_registry.h
-
-etcdir = $(gr_prefsdir)
-dist_etc_DATA = gr-audio.conf
-
-########################################################################
-## ALSA Support
-########################################################################
-if GR_AUDIO_ALSA_SUPPORT
-
-AM_CPPFLAGS += \
- -I$(srcdir)/alsa \
- $(ALSA_CPPFLAGS)
-
-libgnuradio_audio_la_LIBADD += $(ALSA_LIBS)
-
-libgnuradio_audio_la_SOURCES += \
- alsa/gri_alsa.cc \
- alsa/audio_alsa_source.cc \
- alsa/audio_alsa_sink.cc
-
-noinst_HEADERS += \
- alsa/gri_alsa.h \
- alsa/audio_alsa_source.h \
- alsa/audio_alsa_sink.h
-
-dist_etc_DATA += alsa/gr-audio-alsa.conf
-
-endif
-
-########################################################################
-## OSS Support
-########################################################################
-if GR_AUDIO_OSS_SUPPORT
-
-AM_CPPFLAGS += \
- -I$(srcdir)/oss
-
-libgnuradio_audio_la_LIBADD += $(OSS_LIBS)
-
-libgnuradio_audio_la_SOURCES += \
- oss/audio_oss_source.cc \
- oss/audio_oss_sink.cc
-
-noinst_HEADERS += \
- oss/audio_oss_source.h \
- oss/audio_oss_sink.h
-
-dist_etc_DATA += oss/gr-audio-oss.conf
-
-endif
-
-########################################################################
-## Jack Support
-########################################################################
-if GR_AUDIO_JACK_SUPPORT
-
-AM_CPPFLAGS += \
- -I$(srcdir)/jack \
- $(JACK_CPPFLAGS)
-
-libgnuradio_audio_la_LIBADD += $(JACK_LIBS)
-
-libgnuradio_audio_la_SOURCES += \
- jack/gri_jack.cc \
- jack/audio_jack_source.cc \
- jack/audio_jack_sink.cc
-
-noinst_HEADERS += \
- jack/gri_jack.h \
- jack/audio_jack_source.h \
- jack/audio_jack_sink.h
-
-dist_etc_DATA += jack/gr-audio-jack.conf
-
-endif
-
-########################################################################
-## OSX Support
-########################################################################
-if GR_AUDIO_OSX_SUPPORT
-
-AM_CPPFLAGS += \
- -I$(srcdir)/osx
-
-libgnuradio_audio_la_LDFLAGS += \
- -framework AudioUnit \
- -framework CoreAudio \
- -framework AudioToolbox
-
-libgnuradio_audio_la_SOURCES += \
- osx/audio_osx_source.cc \
- osx/audio_osx_sink.cc
-
-noinst_HEADERS += \
- osx/audio_osx.h \
- osx/audio_osx_source.h \
- osx/audio_osx_sink.h \
- osx/circular_buffer.h
-
-endif
-
-########################################################################
-## PortAudio Support
-########################################################################
-if GR_AUDIO_PORTAUDIO_SUPPORT
-
-AM_CPPFLAGS += \
- -I$(srcdir)/portaudio \
- $(PORTAUDIO_CPPFLAGS)
-
-libgnuradio_audio_la_LIBADD += $(PORTAUDIO_LIBS)
-
-libgnuradio_audio_la_SOURCES += \
- portaudio/gri_portaudio.cc \
- portaudio/audio_portaudio_source.cc \
- portaudio/audio_portaudio_sink.cc
-
-noinst_HEADERS += \
- portaudio/gri_portaudio.h \
- portaudio/audio_portaudio_source.h \
- portaudio/audio_portaudio_sink.h
-
-dist_etc_DATA += portaudio/gr-audio-portaudio.conf
-
-endif
-
-########################################################################
-## Windows Support
-########################################################################
-if GR_AUDIO_WINDOWS_SUPPORT
-
-AM_CPPFLAGS += \
- -I$(srcdir)/windows
-
-libgnuradio_audio_la_LIBADD += $(WINAUDIO_LIBS)
-
-libgnuradio_audio_la_SOURCES += \
- windows/audio_windows_source.cc \
- windows/audio_windows_sink.cc
-
-noinst_HEADERS += \
- windows/audio_windows_source.h \
- windows/audio_windows_sink.h
-
-endif
diff --git a/gr-audio/lib/alsa/audio_alsa_sink.cc b/gr-audio/lib/alsa/audio_alsa_sink.cc
index 0bda42470..687f24bde 100644
--- a/gr-audio/lib/alsa/audio_alsa_sink.cc
+++ b/gr-audio/lib/alsa/audio_alsa_sink.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -51,7 +51,7 @@ static snd_pcm_format_t acceptable_formats[] = {
#define NELEMS(x) (sizeof(x)/sizeof(x[0]))
-static std::string
+static std::string
default_device_name ()
{
return gr_prefs::singleton()->get_string("audio_alsa", "default_output_device", "hw:0,0");
@@ -131,7 +131,7 @@ audio_alsa_sink::audio_alsa_sink (int sampling_rate,
}
set_input_signature (gr_make_io_signature (min_chan, max_chan,
sizeof (float)));
-
+
// fill in portions of the d_hw_params that we know now...
// Specify the access methods we implement
@@ -156,14 +156,14 @@ audio_alsa_sink::audio_alsa_sink (int sampling_rate,
"audio_alsa_sink",
CHATTY_DEBUG))
throw std::runtime_error ("audio_alsa_sink");
-
+
// sampling rate
unsigned int orig_sampling_rate = d_sampling_rate;
if ((error = snd_pcm_hw_params_set_rate_near (d_pcm_handle, d_hw_params,
&d_sampling_rate, 0)) < 0)
bail ("failed to set rate near", error);
-
+
if (orig_sampling_rate != d_sampling_rate){
fprintf (stderr, "audio_alsa_sink[%s]: unable to support sampling rate %d\n",
snd_pcm_name (d_pcm_handle), orig_sampling_rate);
@@ -204,7 +204,7 @@ audio_alsa_sink::audio_alsa_sink (int sampling_rate,
&d_period_size, &dir);
if (error < 0)
bail ("get_period_size failed", error);
-
+
set_output_multiple (d_period_size);
}
@@ -226,11 +226,11 @@ audio_alsa_sink::check_topology (int ninputs, int noutputs)
return true; // If stream is running, don't change any parameters
else if(state == SND_PCM_STATE_XRUN )
snd_pcm_prepare ( d_pcm_handle ); // Prepare stream on underrun, and we can set parameters;
-
+
bool special_case = nchan == 1 && d_special_case_mono_to_stereo;
if (special_case)
nchan = 2;
-
+
err = snd_pcm_hw_params_set_channels (d_pcm_handle, d_hw_params, nchan);
if (err < 0){
@@ -249,7 +249,7 @@ audio_alsa_sink::check_topology (int ninputs, int noutputs)
err = snd_pcm_sw_params_current (d_pcm_handle, d_sw_params);
if (err < 0)
bail ("snd_pcm_sw_params_current", err);
-
+
// Tell the PCM device to wait to start until we've filled
// it's buffers half way full. This helps avoid audio underruns.
@@ -327,7 +327,7 @@ audio_alsa_sink::work_s16 (int noutput_items,
{
typedef gr_int16 sample_t; // the type of samples we're creating
static const float scale_factor = std::pow(2.0f, 16-1) - 1;
-
+
unsigned int nchan = input_items.size ();
const float **in = (const float **) &input_items[0];
sample_t *buf = (sample_t *) d_buffer;
@@ -351,7 +351,7 @@ audio_alsa_sink::work_s16 (int noutput_items,
for (unsigned int chan = 0; chan < nchan; chan++)
in[chan] += d_period_size;
- if (!write_buffer (buf, d_period_size, sizeof_frame))
+ if (!write_buffer (buf, d_period_size, sizeof_frame))
return -1; // No fixing this problem. Say we're done.
}
@@ -369,7 +369,7 @@ audio_alsa_sink::work_s32 (int noutput_items,
{
typedef gr_int32 sample_t; // the type of samples we're creating
static const float scale_factor = std::pow(2.0f, 32-1) - 1;
-
+
unsigned int nchan = input_items.size ();
const float **in = (const float **) &input_items[0];
sample_t *buf = (sample_t *) d_buffer;
@@ -393,7 +393,7 @@ audio_alsa_sink::work_s32 (int noutput_items,
for (unsigned int chan = 0; chan < nchan; chan++)
in[chan] += d_period_size;
- if (!write_buffer (buf, d_period_size, sizeof_frame))
+ if (!write_buffer (buf, d_period_size, sizeof_frame))
return -1; // No fixing this problem. Say we're done.
}
@@ -411,7 +411,7 @@ audio_alsa_sink::work_s16_1x2 (int noutput_items,
{
typedef gr_int16 sample_t; // the type of samples we're creating
static const float scale_factor = std::pow(2.0f, 16-1) - 1;
-
+
assert (input_items.size () == 1);
static const unsigned int nchan = 2;
const float **in = (const float **) &input_items[0];
@@ -435,7 +435,7 @@ audio_alsa_sink::work_s16_1x2 (int noutput_items,
// update src pointers
in[0] += d_period_size;
- if (!write_buffer (buf, d_period_size, sizeof_frame))
+ if (!write_buffer (buf, d_period_size, sizeof_frame))
return -1; // No fixing this problem. Say we're done.
}
@@ -453,7 +453,7 @@ audio_alsa_sink::work_s32_1x2 (int noutput_items,
{
typedef gr_int32 sample_t; // the type of samples we're creating
static const float scale_factor = std::pow(2.0f, 32-1) - 1;
-
+
assert (input_items.size () == 1);
static unsigned int nchan = 2;
const float **in = (const float **) &input_items[0];
@@ -477,7 +477,7 @@ audio_alsa_sink::work_s32_1x2 (int noutput_items,
// update src pointers
in[0] += d_period_size;
- if (!write_buffer (buf, d_period_size, sizeof_frame))
+ if (!write_buffer (buf, d_period_size, sizeof_frame))
return -1; // No fixing this problem. Say we're done.
}
@@ -496,7 +496,7 @@ audio_alsa_sink::write_buffer (const void *vbuffer,
{
if (d_ok_to_block == true)
continue; // try again
-
+
break;
}
diff --git a/gr-audio/lib/alsa/audio_alsa_sink.h b/gr-audio/lib/alsa/audio_alsa_sink.h
index b33b84644..d456e53de 100644
--- a/gr-audio/lib/alsa/audio_alsa_sink.h
+++ b/gr-audio/lib/alsa/audio_alsa_sink.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -74,7 +74,7 @@ public:
bool ok_to_block);
~audio_alsa_sink ();
-
+
bool check_topology (int ninputs, int noutputs);
int work (int noutput_items,
diff --git a/gr-audio/lib/alsa/audio_alsa_source.cc b/gr-audio/lib/alsa/audio_alsa_source.cc
index a90552ff5..9fdf80b43 100644
--- a/gr-audio/lib/alsa/audio_alsa_source.cc
+++ b/gr-audio/lib/alsa/audio_alsa_source.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -50,7 +50,7 @@ static snd_pcm_format_t acceptable_formats[] = {
#define NELEMS(x) (sizeof(x)/sizeof(x[0]))
-static std::string
+static std::string
default_device_name ()
{
return gr_prefs::singleton()->get_string("audio_alsa", "default_input_device", "hw:0,0");
@@ -127,10 +127,10 @@ audio_alsa_source::audio_alsa_source (int sampling_rate,
min_chan = 1;
d_special_case_stereo_to_mono = true;
}
-
+
set_output_signature (gr_make_io_signature (min_chan, max_chan,
sizeof (float)));
-
+
// fill in portions of the d_hw_params that we know now...
// Specify the access methods we implement
@@ -155,14 +155,14 @@ audio_alsa_source::audio_alsa_source (int sampling_rate,
"audio_alsa_source",
CHATTY_DEBUG))
throw std::runtime_error ("audio_alsa_source");
-
+
// sampling rate
unsigned int orig_sampling_rate = d_sampling_rate;
if ((error = snd_pcm_hw_params_set_rate_near (d_pcm_handle, d_hw_params,
&d_sampling_rate, 0)) < 0)
bail ("failed to set rate near", error);
-
+
if (orig_sampling_rate != d_sampling_rate){
fprintf (stderr, "audio_alsa_source[%s]: unable to support sampling rate %d\n",
snd_pcm_name (d_pcm_handle), orig_sampling_rate);
@@ -204,7 +204,7 @@ audio_alsa_source::audio_alsa_source (int sampling_rate,
&d_period_size, &dir);
if (error < 0)
bail ("get_period_size failed", error);
-
+
set_output_multiple (d_period_size);
}
@@ -309,7 +309,7 @@ audio_alsa_source::work_s16 (int noutput_items,
{
typedef gr_int16 sample_t; // the type of samples we're creating
static const float scale_factor = 1.0 / std::pow(2.0f, 16-1);
-
+
unsigned int nchan = output_items.size ();
float **out = (float **) &output_items[0];
sample_t *buf = (sample_t *) d_buffer;
@@ -321,7 +321,7 @@ audio_alsa_source::work_s16 (int noutput_items,
// To minimize latency, return at most a single period's worth of samples.
// [We could also read the first one in a blocking mode and subsequent
// ones in non-blocking mode, but we'll leave that for later (or never).]
-
+
if (!read_buffer (buf, d_period_size, sizeof_frame))
return -1; // No fixing this problem. Say we're done.
@@ -347,7 +347,7 @@ audio_alsa_source::work_s16_2x1 (int noutput_items,
{
typedef gr_int16 sample_t; // the type of samples we're creating
static const float scale_factor = 1.0 / std::pow(2.0f, 16-1);
-
+
float **out = (float **) &output_items[0];
sample_t *buf = (sample_t *) d_buffer;
int bi;
@@ -360,7 +360,7 @@ audio_alsa_source::work_s16_2x1 (int noutput_items,
// To minimize latency, return at most a single period's worth of samples.
// [We could also read the first one in a blocking mode and subsequent
// ones in non-blocking mode, but we'll leave that for later (or never).]
-
+
if (!read_buffer (buf, d_period_size, sizeof_frame))
return -1; // No fixing this problem. Say we're done.
@@ -385,7 +385,7 @@ audio_alsa_source::work_s32 (int noutput_items,
{
typedef gr_int32 sample_t; // the type of samples we're creating
static const float scale_factor = 1.0 / std::pow(2.0f, 32-1);
-
+
unsigned int nchan = output_items.size ();
float **out = (float **) &output_items[0];
sample_t *buf = (sample_t *) d_buffer;
@@ -397,7 +397,7 @@ audio_alsa_source::work_s32 (int noutput_items,
// To minimize latency, return at most a single period's worth of samples.
// [We could also read the first one in a blocking mode and subsequent
// ones in non-blocking mode, but we'll leave that for later (or never).]
-
+
if (!read_buffer (buf, d_period_size, sizeof_frame))
return -1; // No fixing this problem. Say we're done.
@@ -423,7 +423,7 @@ audio_alsa_source::work_s32_2x1 (int noutput_items,
{
typedef gr_int32 sample_t; // the type of samples we're creating
static const float scale_factor = 1.0 / std::pow(2.0f, 32-1);
-
+
float **out = (float **) &output_items[0];
sample_t *buf = (sample_t *) d_buffer;
int bi;
@@ -436,7 +436,7 @@ audio_alsa_source::work_s32_2x1 (int noutput_items,
// To minimize latency, return at most a single period's worth of samples.
// [We could also read the first one in a blocking mode and subsequent
// ones in non-blocking mode, but we'll leave that for later (or never).]
-
+
if (!read_buffer (buf, d_period_size, sizeof_frame))
return -1; // No fixing this problem. Say we're done.
diff --git a/gr-audio/lib/alsa/audio_alsa_source.h b/gr-audio/lib/alsa/audio_alsa_source.h
index 142ae711a..320d49bd2 100644
--- a/gr-audio/lib/alsa/audio_alsa_source.h
+++ b/gr-audio/lib/alsa/audio_alsa_source.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -77,7 +77,7 @@ public:
bool ok_to_block);
~audio_alsa_source ();
-
+
bool check_topology (int ninputs, int noutputs);
int work (int noutput_items,
diff --git a/gr-audio/lib/alsa/gri_alsa.cc b/gr-audio/lib/alsa/gri_alsa.cc
index d9fda0f7d..7bae0937d 100644
--- a/gr-audio/lib/alsa/gri_alsa.cc
+++ b/gr-audio/lib/alsa/gri_alsa.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -87,7 +87,7 @@ void
gri_alsa_dump_hw_params (snd_pcm_t *pcm, snd_pcm_hw_params_t *hwparams, FILE *fp)
{
fprintf (fp, "PCM name: %s\n", snd_pcm_name (pcm));
-
+
fprintf (fp, "Access types:\n");
for (unsigned i = 0; i < NELEMS (access_types); i++){
snd_pcm_access_t at = access_types[i];
@@ -168,7 +168,7 @@ gri_alsa_pick_acceptable_format (snd_pcm_t *pcm,
return true;
}
}
-
+
fprintf (stderr, "%s[%s]: failed to find acceptable format",
error_msg_tag, snd_pcm_name (pcm));
return false;
diff --git a/gr-audio/lib/alsa/gri_alsa.h b/gr-audio/lib/alsa/gri_alsa.h
index 3d72fd950..9c64e2c36 100644
--- a/gr-audio/lib/alsa/gri_alsa.h
+++ b/gr-audio/lib/alsa/gri_alsa.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -26,7 +26,7 @@
#include <stdio.h>
#include <alsa/asoundlib.h>
-void
+void
gri_alsa_dump_hw_params (snd_pcm_t *pcm,
snd_pcm_hw_params_t *hwparams,
FILE *fp);
diff --git a/gr-audio/lib/gr_audio_registry.cc b/gr-audio/lib/gr_audio_registry.cc
index da4b16b35..e07bf844a 100644
--- a/gr-audio/lib/gr_audio_registry.cc
+++ b/gr-audio/lib/gr_audio_registry.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gr-audio/lib/gr_audio_registry.h b/gr-audio/lib/gr_audio_registry.h
index ec341e95e..c40e15657 100644
--- a/gr-audio/lib/gr_audio_registry.h
+++ b/gr-audio/lib/gr_audio_registry.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gr-audio/lib/jack/audio_jack_sink.cc b/gr-audio/lib/jack/audio_jack_sink.cc
index f06e77bd5..9caabe8e2 100644
--- a/gr-audio/lib/jack/audio_jack_sink.cc
+++ b/gr-audio/lib/jack/audio_jack_sink.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -50,7 +50,7 @@ typedef jack_default_audio_sample_t sample_t;
// TODO: make it to match at least the quantity of items passed by work()
static const unsigned int N_BUFFERS = 16;
-static std::string
+static std::string
default_device_name ()
{
return gr_prefs::singleton()->get_string("audio_jack", "default_output_device", "gr_sink");
@@ -77,7 +77,7 @@ jack_sink_process (jack_nframes_t nframes, void *arg)
// Tell the sink thread there is room in the ringbuffer.
// If it is already running, the lock will not be available.
// We can't wait here in the process() thread, but we don't
- // need to signal in that case, because the sink thread will
+ // need to signal in that case, because the sink thread will
// check for room availability.
if (pthread_mutex_trylock (&self->d_jack_process_lock) == 0) {
@@ -108,7 +108,7 @@ audio_jack_sink::audio_jack_sink (int sampling_rate,
pthread_cond_init(&d_ringbuffer_ready, NULL);;
pthread_mutex_init(&d_jack_process_lock, NULL);
#endif
-
+
// try to become a client of the JACK server
jack_options_t options = JackNullOption;
jack_status_t status;
@@ -130,9 +130,9 @@ audio_jack_sink::audio_jack_sink (int sampling_rate,
// just decides to stop calling us.
//jack_on_shutdown (d_jack_client, &jack_shutdown, (void*)this);
-
- d_jack_output_port =
- jack_port_register (d_jack_client, "out",
+
+ d_jack_output_port =
+ jack_port_register (d_jack_client, "out",
JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0);
@@ -165,7 +165,7 @@ audio_jack_sink::check_topology (int ninputs, int noutputs)
if (ninputs != 1)
return false;
- // tell the JACK server that we are ready to roll
+ // tell the JACK server that we are ready to roll
if (jack_activate (d_jack_client))
throw std::runtime_error ("audio_jack_sink");
@@ -191,7 +191,7 @@ audio_jack_sink::work (int noutput_items,
unsigned int write_space; // bytes
#ifdef NO_PTHREAD
- while ((write_space=jack_ringbuffer_write_space (d_ringbuffer)) <
+ while ((write_space=jack_ringbuffer_write_space (d_ringbuffer)) <
d_jack_buffer_size*sizeof(sample_t)) {
usleep(1000000*((d_jack_buffer_size-write_space/sizeof(sample_t))/d_sampling_rate));
}
@@ -199,7 +199,7 @@ audio_jack_sink::work (int noutput_items,
// JACK actually requires POSIX
pthread_mutex_lock (&d_jack_process_lock);
- while ((write_space=jack_ringbuffer_write_space (d_ringbuffer)) <
+ while ((write_space=jack_ringbuffer_write_space (d_ringbuffer)) <
d_jack_buffer_size*sizeof(sample_t)) {
// wait until jack_sink_process() signals more room
diff --git a/gr-audio/lib/jack/audio_jack_sink.h b/gr-audio/lib/jack/audio_jack_sink.h
index 5500b3641..8cc343937 100644
--- a/gr-audio/lib/jack/audio_jack_sink.h
+++ b/gr-audio/lib/jack/audio_jack_sink.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -69,7 +69,7 @@ public:
audio_jack_sink (int sampling_rate, const std::string device_name, bool ok_to_block);
~audio_jack_sink ();
-
+
bool check_topology (int ninputs, int noutputs);
int work (int noutput_items,
diff --git a/gr-audio/lib/jack/audio_jack_source.cc b/gr-audio/lib/jack/audio_jack_source.cc
index dcd41c3ac..137fd538e 100644
--- a/gr-audio/lib/jack/audio_jack_source.cc
+++ b/gr-audio/lib/jack/audio_jack_source.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2006,2010 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -50,7 +50,7 @@ typedef jack_default_audio_sample_t sample_t;
// TODO: make it to match at least the quantity of items passed to work()
static const unsigned int N_BUFFERS = 16;
-static std::string
+static std::string
default_device_name ()
{
return gr_prefs::singleton()->get_string("audio_jack", "default_input_device", "gr_source");
@@ -78,7 +78,7 @@ jack_source_process (jack_nframes_t nframes, void *arg)
// Tell the source thread there is data in the ringbuffer.
// If it is already running, the lock will not be available.
// We can't wait here in the process() thread, but we don't
- // need to signal in that case, because the source thread will
+ // need to signal in that case, because the source thread will
// check for data availability.
if (pthread_mutex_trylock (&self->d_jack_process_lock) == 0) {
@@ -131,8 +131,8 @@ audio_jack_source::audio_jack_source (int sampling_rate,
// just decides to stop calling us.
//jack_on_shutdown (d_jack_client, &jack_shutdown, (void*)this);
-
- d_jack_input_port = jack_port_register (d_jack_client, "in",
+
+ d_jack_input_port = jack_port_register (d_jack_client, "in",
JACK_DEFAULT_AUDIO_TYPE,
JackPortIsInput, 0);
@@ -162,7 +162,7 @@ audio_jack_source::audio_jack_source (int sampling_rate,
bool
audio_jack_source::check_topology (int ninputs, int noutputs)
{
- // tell the JACK server that we are ready to roll
+ // tell the JACK server that we are ready to roll
if (jack_activate (d_jack_client))
throw std::runtime_error ("audio_jack_source");
@@ -192,7 +192,7 @@ audio_jack_source::work (int noutput_items,
unsigned int read_space; // bytes
#ifdef NO_PTHREAD
- while ((read_space=jack_ringbuffer_read_space (d_ringbuffer)) <
+ while ((read_space=jack_ringbuffer_read_space (d_ringbuffer)) <
d_jack_buffer_size*sizeof(sample_t)) {
usleep(1000000*((d_jack_buffer_size-read_space/sizeof(sample_t))/d_sampling_rate));
}
@@ -200,7 +200,7 @@ audio_jack_source::work (int noutput_items,
// JACK actually requires POSIX
pthread_mutex_lock (&d_jack_process_lock);
- while ((read_space=jack_ringbuffer_read_space (d_ringbuffer)) <
+ while ((read_space=jack_ringbuffer_read_space (d_ringbuffer)) <
d_jack_buffer_size*sizeof(sample_t)) {
// wait until jack_source_process() signals more data
diff --git a/gr-audio/lib/jack/audio_jack_source.h b/gr-audio/lib/jack/audio_jack_source.h
index a155bf95b..2849c84b0 100644
--- a/gr-audio/lib/jack/audio_jack_source.h
+++ b/gr-audio/lib/jack/audio_jack_source.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -69,7 +69,7 @@ public:
audio_jack_source (int sampling_rate, const std::string device_name, bool ok_to_block);
~audio_jack_source ();
-
+
bool check_topology (int ninputs, int noutputs);
int work (int noutput_items,
diff --git a/gr-audio/lib/jack/gri_jack.cc b/gr-audio/lib/jack/gri_jack.cc
index fef1c58a6..793ed8336 100644
--- a/gr-audio/lib/jack/gri_jack.cc
+++ b/gr-audio/lib/jack/gri_jack.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gr-audio/lib/jack/gri_jack.h b/gr-audio/lib/jack/gri_jack.h
index ddc0b744d..5dcd3b811 100644
--- a/gr-audio/lib/jack/gri_jack.h
+++ b/gr-audio/lib/jack/gri_jack.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gr-audio/lib/oss/audio_oss_sink.cc b/gr-audio/lib/oss/audio_oss_sink.cc
index 34af16cce..26b71be24 100644
--- a/gr-audio/lib/oss/audio_oss_sink.cc
+++ b/gr-audio/lib/oss/audio_oss_sink.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -66,7 +66,7 @@ audio_oss_sink::audio_oss_sink (int sampling_rate,
throw std::runtime_error ("audio_oss_sink");
}
- double CHUNK_TIME =
+ double CHUNK_TIME =
std::max(0.001, gr_prefs::singleton()->get_double("audio_oss", "latency", 0.005));
d_chunk_size = (int) (d_sampling_rate * CHUNK_TIME);
@@ -121,7 +121,7 @@ audio_oss_sink::work (int noutput_items,
gr_vector_void_star &output_items)
{
const float *f0, *f1;
-
+
switch (input_items.size ()){
case 1: // mono input
@@ -138,7 +138,7 @@ audio_oss_sink::work (int noutput_items,
perror ("audio_oss_sink: write");
}
break;
-
+
case 2: // stereo input
f0 = (const float *) input_items[0];
diff --git a/gr-audio/lib/oss/audio_oss_sink.h b/gr-audio/lib/oss/audio_oss_sink.h
index 47b1407d3..8148ec34b 100644
--- a/gr-audio/lib/oss/audio_oss_sink.h
+++ b/gr-audio/lib/oss/audio_oss_sink.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -46,7 +46,7 @@ public:
audio_oss_sink (int sampling_rate, const std::string device_name = "", bool ok_to_block = true);
~audio_oss_sink ();
-
+
int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
diff --git a/gr-audio/lib/oss/audio_oss_source.cc b/gr-audio/lib/oss/audio_oss_source.cc
index eefe4dd04..e186e30ae 100644
--- a/gr-audio/lib/oss/audio_oss_source.cc
+++ b/gr-audio/lib/oss/audio_oss_source.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -126,13 +126,13 @@ audio_oss_source::work (int noutput_items,
const int bytes_per_item = shorts_per_item * sizeof (short);
// To minimize latency, never return more than CHUNK_TIME
- // worth of samples per call to work.
+ // worth of samples per call to work.
noutput_items = std::min (noutput_items, d_chunk_size);
int base = 0;
int ntogo = noutput_items;
-
+
while (ntogo > 0){
int nbytes = std::min (ntogo, d_chunk_size) * bytes_per_item;
int result_nbytes = read (d_fd, d_buffer, nbytes);
@@ -158,7 +158,7 @@ audio_oss_source::work (int noutput_items,
}
break;
- case 2: // stereo output
+ case 2: // stereo output
for (int i = 0; i < result_nitems; i++){
f0[base+i] = d_buffer[2*i+0] * (1.0 / 32767);
f1[base+i] = d_buffer[2*i+1] * (1.0 / 32767);
diff --git a/gr-audio/lib/oss/audio_oss_source.h b/gr-audio/lib/oss/audio_oss_source.h
index df9f68e42..abb2db1f8 100644
--- a/gr-audio/lib/oss/audio_oss_source.h
+++ b/gr-audio/lib/oss/audio_oss_source.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -48,7 +48,7 @@ public:
bool ok_to_block = true);
~audio_oss_source ();
-
+
int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
diff --git a/gr-audio/lib/osx/audio_osx.h b/gr-audio/lib/osx/audio_osx.h
index 79e79e36c..0a98b71ef 100644
--- a/gr-audio/lib/osx/audio_osx.h
+++ b/gr-audio/lib/osx/audio_osx.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio.
*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gr-audio/lib/osx/audio_osx_sink.cc b/gr-audio/lib/osx/audio_osx_sink.cc
index 901881da6..939e5e0a1 100644
--- a/gr-audio/lib/osx/audio_osx_sink.cc
+++ b/gr-audio/lib/osx/audio_osx_sink.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio.
*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -144,10 +144,10 @@ audio_osx_sink::audio_osx_sink (int sample_rate,
input.inputProcRefCon = this;
err = AudioUnitSetProperty (d_OutputAU,
- kAudioUnitProperty_SetRenderCallback,
+ kAudioUnitProperty_SetRenderCallback,
kAudioUnitScope_Input,
- 0,
- &input,
+ 0,
+ &input,
sizeof (input));
CheckErrorAndThrow (err, "AudioUnitSetProperty Render Callback", "audio_osx_sink::audio_osx_sink");
@@ -355,11 +355,11 @@ audio_osx_sink::work (int noutput_items,
}
OSStatus audio_osx_sink::AUOutputCallback
-(void *inRefCon,
- AudioUnitRenderActionFlags *ioActionFlags,
- const AudioTimeStamp *inTimeStamp,
- UInt32 inBusNumber,
- UInt32 inNumberFrames,
+(void *inRefCon,
+ AudioUnitRenderActionFlags *ioActionFlags,
+ const AudioTimeStamp *inTimeStamp,
+ UInt32 inBusNumber,
+ UInt32 inNumberFrames,
AudioBufferList *ioData)
{
audio_osx_sink* This = (audio_osx_sink*) inRefCon;
diff --git a/gr-audio/lib/osx/audio_osx_sink.h b/gr-audio/lib/osx/audio_osx_sink.h
index e7598097d..73b3db40d 100644
--- a/gr-audio/lib/osx/audio_osx_sink.h
+++ b/gr-audio/lib/osx/audio_osx_sink.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio.
*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -69,11 +69,11 @@ public:
gr_vector_void_star &output_items);
private:
- static OSStatus AUOutputCallback (void *inRefCon,
- AudioUnitRenderActionFlags *ioActionFlags,
- const AudioTimeStamp *inTimeStamp,
- UInt32 inBusNumber,
- UInt32 inNumberFrames,
+ static OSStatus AUOutputCallback (void *inRefCon,
+ AudioUnitRenderActionFlags *ioActionFlags,
+ const AudioTimeStamp *inTimeStamp,
+ UInt32 inBusNumber,
+ UInt32 inNumberFrames,
AudioBufferList *ioData);
};
diff --git a/gr-audio/lib/osx/audio_osx_source.cc b/gr-audio/lib/osx/audio_osx_source.cc
index 6c5609d20..29f0ac381 100644
--- a/gr-audio/lib/osx/audio_osx_source.cc
+++ b/gr-audio/lib/osx/audio_osx_source.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio.
*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -134,7 +134,7 @@ audio_osx_source::audio_osx_source (int sample_rate,
#else
ComponentDescription InputDesc;
#endif
-
+
InputDesc.componentType = kAudioUnitType_Output;
InputDesc.componentSubType = kAudioUnitSubType_HALOutput;
@@ -147,7 +147,7 @@ audio_osx_source::audio_osx_source (int sample_rate,
#else
Component comp = FindNextComponent (NULL, &InputDesc);
#endif
-
+
if (comp == NULL) {
#ifndef GR_USE_OLD_AUDIO_UNIT
std::cerr << "AudioComponentFindNext Error" << std::endl;
@@ -166,11 +166,11 @@ audio_osx_source::audio_osx_source (int sample_rate,
CheckErrorAndThrow (err, "OpenAComponent",
"audio_osx_source::audio_osx_source");
#endif
-
+
UInt32 enableIO;
-// must enable the AUHAL for input and disable output
+// must enable the AUHAL for input and disable output
// before setting the AUHAL's current device
// Enable input on the AUHAL
@@ -392,7 +392,7 @@ audio_osx_source::audio_osx_source (int sample_rate,
// UInt32 ACPrimeMethod = kConverterPrimeMethod_None;
UInt32 ACPrimeMethod = kConverterPrimeMethod_Pre;
propertySize = sizeof (ACPrimeMethod);
- err = AudioConverterSetProperty (d_AudioConverter,
+ err = AudioConverterSetProperty (d_AudioConverter,
kAudioConverterPrimeMethod,
propertySize,
&ACPrimeMethod);
@@ -400,12 +400,12 @@ audio_osx_source::audio_osx_source (int sample_rate,
"audio_osx_source::audio_osx_source");
// Get the size of the I/O buffer(s) to allow for pre-allocated buffers
-
+
// lead frame info (trail frame info is ignored)
AudioConverterPrimeInfo ACPrimeInfo = {0, 0};
propertySize = sizeof (ACPrimeInfo);
- err = AudioConverterGetProperty (d_AudioConverter,
+ err = AudioConverterGetProperty (d_AudioConverter,
kAudioConverterPrimeInfo,
&propertySize,
&ACPrimeInfo);
@@ -981,7 +981,7 @@ audio_osx_source::SetDefaultInputDeviceAsCurrent
#if _OSX_DO_LISTENERS_
OSStatus
audio_osx_source::HardwareListener
-(AudioHardwarePropertyID inPropertyID,
+(AudioHardwarePropertyID inPropertyID,
void *inClientData)
{
OSStatus err = noErr;
@@ -1012,7 +1012,7 @@ audio_osx_source::UnitListener
{
OSStatus err = noErr;
audio_osx_source* This = static_cast<audio_osx_source*>(inRefCon);
- AudioStreamBasicDescription asbd;
+ AudioStreamBasicDescription asbd;
std::cerr << "a_o_s::UnitListener" << std::endl;
diff --git a/gr-audio/lib/osx/audio_osx_source.h b/gr-audio/lib/osx/audio_osx_source.h
index 435172a2c..bb34d972c 100644
--- a/gr-audio/lib/osx/audio_osx_source.h
+++ b/gr-audio/lib/osx/audio_osx_source.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio.
*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -108,7 +108,7 @@ private:
AudioUnitScope inScope,
AudioUnitElement inElement);
- static OSStatus HardwareListener (AudioHardwarePropertyID inPropertyID,
+ static OSStatus HardwareListener (AudioHardwarePropertyID inPropertyID,
void *inClientData);
#endif
};
diff --git a/gr-audio/lib/osx/circular_buffer.h b/gr-audio/lib/osx/circular_buffer.h
index 48758bf87..65788d482 100644
--- a/gr-audio/lib/osx/circular_buffer.h
+++ b/gr-audio/lib/osx/circular_buffer.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2009,2010 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio.
*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gr-audio/lib/portaudio/audio_portaudio_sink.cc b/gr-audio/lib/portaudio/audio_portaudio_sink.cc
index 7fdb99577..af7f1e48c 100644
--- a/gr-audio/lib/portaudio/audio_portaudio_sink.cc
+++ b/gr-audio/lib/portaudio/audio_portaudio_sink.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in he hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -49,7 +49,7 @@ typedef float sample_t;
// Number of portaudio buffers in the ringbuffer
static const unsigned int N_BUFFERS = 4;
-static std::string
+static std::string
default_device_name ()
{
return gr_prefs::singleton()->get_string("audio_portaudio", "default_output_device", "");
@@ -59,7 +59,7 @@ void
audio_portaudio_sink::create_ringbuffer(void)
{
int bufsize_samples = d_portaudio_buffer_size_frames * d_output_parameters.channelCount;
-
+
if (d_verbose)
fprintf(stderr,"ring buffer size = %d frames\n",
N_BUFFERS*bufsize_samples/d_output_parameters.channelCount);
@@ -89,7 +89,7 @@ portaudio_sink_callback (const void *inputBuffer,
framesPerBuffer * self->d_output_parameters.channelCount;
int navail_samples = self->d_reader->items_available();
-
+
if (nreqd_samples <= navail_samples) { // We've got enough data...
{
gruel::scoped_lock guard(self->d_ringbuffer_mutex);
@@ -167,7 +167,7 @@ audio_portaudio_sink::audio_portaudio_sink(int sampling_rate,
if (numDevices == 0)
bail("no devices available", 0);
- if (d_device_name.empty())
+ if (d_device_name.empty())
{
// FIXME Get smarter about picking something
fprintf(stderr,"\nUsing Default Device\n");
@@ -259,7 +259,7 @@ audio_portaudio_sink::check_topology (int ninputs, int noutputs)
return false;
}
-#if 0
+#if 0
const PaStreamInfo *psi = Pa_GetStreamInfo(d_stream);
d_portaudio_buffer_size_frames = (int)(d_output_parameters.suggestedLatency * psi->sampleRate);
@@ -332,11 +332,11 @@ audio_portaudio_sink::work (int noutput_items,
int nf = std::min(noutput_items - k, nframes);
float *p = (float *) d_writer->write_pointer();
-
+
for (int i = 0; i < nf; i++)
for (unsigned int c = 0; c < nchan; c++)
*p++ = in[c][k + i];
-
+
d_writer->update_write_pointer(nf * nchan);
k += nf;
diff --git a/gr-audio/lib/portaudio/audio_portaudio_sink.h b/gr-audio/lib/portaudio/audio_portaudio_sink.h
index 04a881f7e..cf64d3da0 100644
--- a/gr-audio/lib/portaudio/audio_portaudio_sink.h
+++ b/gr-audio/lib/portaudio/audio_portaudio_sink.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -75,7 +75,7 @@ public:
bool ok_to_block);
~audio_portaudio_sink ();
-
+
bool check_topology (int ninputs, int noutputs);
int work (int noutput_items,
diff --git a/gr-audio/lib/portaudio/audio_portaudio_source.cc b/gr-audio/lib/portaudio/audio_portaudio_source.cc
index 55828ad21..ddb1a6fb6 100644
--- a/gr-audio/lib/portaudio/audio_portaudio_source.cc
+++ b/gr-audio/lib/portaudio/audio_portaudio_source.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in he hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -49,7 +49,7 @@ typedef float sample_t;
// Number of portaudio buffers in the ringbuffer
static const unsigned int N_BUFFERS = 4;
-static std::string
+static std::string
default_device_name ()
{
return gr_prefs::singleton()->get_string("audio_portaudio", "default_input_device", "");
@@ -59,7 +59,7 @@ void
audio_portaudio_source::create_ringbuffer(void)
{
int bufsize_samples = d_portaudio_buffer_size_frames * d_input_parameters.channelCount;
-
+
if (d_verbose)
fprintf(stderr, "ring buffer size = %d frames\n",
N_BUFFERS*bufsize_samples/d_input_parameters.channelCount);
@@ -101,7 +101,7 @@ portaudio_source_callback (const void *inputBuffer,
inputBuffer,
nframes_to_copy * nchan * sizeof(sample_t));
self->d_writer->update_write_pointer(nframes_to_copy * nchan);
-
+
// Tell the source thread there is new data in the ringbuffer.
self->d_ringbuffer_ready = true;
}
@@ -167,7 +167,7 @@ audio_portaudio_source::audio_portaudio_source(int sampling_rate,
if (numDevices == 0)
bail("no devices available", 0);
- if (d_device_name.empty())
+ if (d_device_name.empty())
{
// FIXME Get smarter about picking something
device = Pa_GetDefaultInputDevice();
@@ -178,7 +178,7 @@ audio_portaudio_source::audio_portaudio_source(int sampling_rate,
else
{
bool found = false;
-
+
for (i=0;i<numDevices;i++) {
deviceInfo = Pa_GetDeviceInfo( i );
fprintf(stderr,"Testing device name: %s",deviceInfo->name);
@@ -257,7 +257,7 @@ audio_portaudio_source::check_topology (int ninputs, int noutputs)
return false;
}
-#if 0
+#if 0
const PaStreamInfo *psi = Pa_GetStreamInfo(d_stream);
d_portaudio_buffer_size_frames = (int)(d_input_parameters.suggestedLatency * psi->sampleRate);
@@ -309,7 +309,7 @@ audio_portaudio_source::work (int noutput_items,
d_ringbuffer_cond.wait(guard); // block here, then try again
continue;
}
-
+
assert(k == 0);
// There's no data and we're not allowed to block.
@@ -343,7 +343,7 @@ audio_portaudio_source::work (int noutput_items,
gruel::scoped_lock guard(d_ringbuffer_mutex);
int nf = std::min(noutput_items - k, nframes);
-
+
const float *p = (const float *) d_reader->read_pointer();
for (int i = 0; i < nf; i++){
for (unsigned int c = 0; c < nchan; c++){
diff --git a/gr-audio/lib/portaudio/audio_portaudio_source.h b/gr-audio/lib/portaudio/audio_portaudio_source.h
index b555bc759..e81389a3b 100644
--- a/gr-audio/lib/portaudio/audio_portaudio_source.h
+++ b/gr-audio/lib/portaudio/audio_portaudio_source.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006-2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -73,7 +73,7 @@ public:
bool ok_to_block);
~audio_portaudio_source ();
-
+
bool check_topology (int ninputs, int noutputs);
int work (int ninput_items,
diff --git a/gr-audio/lib/portaudio/gri_portaudio.cc b/gr-audio/lib/portaudio/gri_portaudio.cc
index faa472337..66f3d4647 100644
--- a/gr-audio/lib/portaudio/gri_portaudio.cc
+++ b/gr-audio/lib/portaudio/gri_portaudio.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -80,7 +80,7 @@ gri_print_devices()
printf( "[ Default %s Input", hostInfo->name );
defaultDisplayed = 1;
}
-
+
if( i == Pa_GetDefaultOutputDevice() )
{
printf( (defaultDisplayed ? "," : "[") );
@@ -90,7 +90,7 @@ gri_print_devices()
else if( i == Pa_GetHostApiInfo( deviceInfo->hostApi )->defaultOutputDevice )
{
const PaHostApiInfo *hostInfo = Pa_GetHostApiInfo( deviceInfo->hostApi );
- printf( (defaultDisplayed ? "," : "[") );
+ printf( (defaultDisplayed ? "," : "[") );
printf( " Default %s Output", hostInfo->name );
defaultDisplayed = 1;
}
diff --git a/gr-audio/lib/portaudio/gri_portaudio.h b/gr-audio/lib/portaudio/gri_portaudio.h
index 36191e25a..c3ea7d064 100644
--- a/gr-audio/lib/portaudio/gri_portaudio.h
+++ b/gr-audio/lib/portaudio/gri_portaudio.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gr-audio/swig/.gitignore b/gr-audio/swig/.gitignore
deleted file mode 100644
index 7fd371091..000000000
--- a/gr-audio/swig/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-/audio_swig.cc
-/audio_swig.py
-/Makefile
-/Makefile.in
-/python
diff --git a/gr-audio/swig/CMakeLists.txt b/gr-audio/swig/CMakeLists.txt
index 8a3258f66..4997ca3f7 100644
--- a/gr-audio/swig/CMakeLists.txt
+++ b/gr-audio/swig/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gr-audio/swig/Makefile.am b/gr-audio/swig/Makefile.am
deleted file mode 100644
index a5d5f4ad0..000000000
--- a/gr-audio/swig/Makefile.am
+++ /dev/null
@@ -1,71 +0,0 @@
-#
-# Copyright 2011 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street,
-# Boston, MA 02110-1301, USA.
-#
-
-include $(top_srcdir)/Makefile.common
-include $(top_srcdir)/Makefile.swig
-
-AUDIO_CPPFLAGS = -I$(abs_top_srcdir)/gr-audio/include
-
-AM_CPPFLAGS = \
- $(STD_DEFINES_AND_INCLUDES) \
- $(PYTHON_CPPFLAGS) \
- $(AUDIO_CPPFLAGS) \
- $(WITH_INCLUDES)
-
-# ----------------------------------------------------------------
-# The SWIG library
-
-TOP_SWIG_DOC_IFILES = \
- audio_swig_doc.i
-
-TOP_SWIG_IFILES = \
- $(TOP_SWIG_DOC_IFILES) \
- audio_swig.i
-
-BUILT_SOURCES += \
- $(TOP_SWIG_DOC_IFILES)
-
-EXTRA_DIST += \
- $(TOP_SWIG_DOC_IFILES)
-
-$(TOP_SWIG_DOC_IFILES):
- `echo "" > $@`
-
-# Install so that they end up available as:
-# import gnuradio.audio
-# This ends up at:
-# ${prefix}/lib/python${python_version}/site-packages/gnuradio/audio
-audio_swig_pythondir_category = \
- gnuradio/audio
-
-# additional libraries for linking with the SWIG-generated library
-audio_swig_la_swig_libadd = \
- $(top_builddir)/gr-audio/lib/libgnuradio-audio.la
-
-# additional Python files to be installed along with the SWIG-generated one
-audio_swig_python = \
- __init__.py
-
-# additional SWIG files to be installed
-audio_swig_swiginclude_headers = \
- $(TOP_SWIG_DOC_IFILES)
-
-audio_swig_swig_args = $(AUDIO_CPPFLAGS)
diff --git a/gr-audio/swig/Makefile.swig.gen b/gr-audio/swig/Makefile.swig.gen
deleted file mode 100644
index 14322c0e5..000000000
--- a/gr-audio/swig/Makefile.swig.gen
+++ /dev/null
@@ -1,145 +0,0 @@
-# -*- Makefile -*-
-#
-# Copyright 2009 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street,
-# Boston, MA 02110-1301, USA.
-#
-
-# Makefile.swig.gen for audio_swig.i
-
-## Default install locations for these files:
-##
-## Default location for the Python directory is:
-## ${prefix}/lib/python${python_version}/site-packages/[category]/audio_swig
-## Default location for the Python exec directory is:
-## ${exec_prefix}/lib/python${python_version}/site-packages/[category]/audio_swig
-##
-## The following can be overloaded to change the install location, but
-## this has to be done in the including Makefile.am -before-
-## Makefile.swig is included.
-
-audio_swig_pythondir_category ?= gnuradio/audio_swig
-audio_swig_pylibdir_category ?= $(audio_swig_pythondir_category)
-audio_swig_pythondir = $(pythondir)/$(audio_swig_pythondir_category)
-audio_swig_pylibdir = $(pyexecdir)/$(audio_swig_pylibdir_category)
-
-# The .so libraries for the guile modules get installed whereever guile
-# is installed, usually /usr/lib/guile/gnuradio/
-# FIXME: determince whether these should be installed with gnuradio.
-audio_swig_scmlibdir = $(libdir)
-
-# The scm files for the guile modules get installed where ever guile
-# is installed, usually /usr/share/guile/site/audio_swig
-# FIXME: determince whether these should be installed with gnuradio.
-audio_swig_scmdir = $(guiledir)
-
-## SWIG headers are always installed into the same directory.
-
-audio_swig_swigincludedir = $(swigincludedir)
-
-## This is a template file for a "generated" Makefile addition (in
-## this case, "Makefile.swig.gen"). By including the top-level
-## Makefile.swig, this file will be used to generate the SWIG
-## dependencies. Assign the variable TOP_SWIG_FILES to be the list of
-## SWIG .i files to generated wrappings for; there can be more than 1
-## so long as the names are unique (no sorting is done on the
-## TOP_SWIG_FILES list). This file explicitly assumes that a SWIG .i
-## file will generate .cc, .py, and possibly .h files -- meaning that
-## all of these files will have the same base name (that provided for
-## the SWIG .i file).
-##
-## This code is setup to ensure parallel MAKE ("-j" or "-jN") does the
-## right thing. For more info, see <
-## http://sources.redhat.com/automake/automake.html#Multiple-Outputs >
-
-## Other cleaned files: dependency files generated by SWIG or this Makefile
-
-MOSTLYCLEANFILES += $(DEPDIR)/*.S*
-
-## Various SWIG variables. These can be overloaded in the including
-## Makefile.am by setting the variable value there, then including
-## Makefile.swig .
-
-audio_swig_swiginclude_HEADERS = \
- audio_swig.i \
- $(audio_swig_swiginclude_headers)
-
-if PYTHON
-audio_swig_pylib_LTLIBRARIES = \
- _audio_swig.la
-
-_audio_swig_la_SOURCES = \
- python/audio_swig.cc \
- $(audio_swig_la_swig_sources)
-
-audio_swig_python_PYTHON = \
- audio_swig.py \
- $(audio_swig_python)
-
-_audio_swig_la_LIBADD = \
- $(STD_SWIG_LA_LIB_ADD) \
- $(audio_swig_la_swig_libadd)
-
-_audio_swig_la_LDFLAGS = \
- $(STD_SWIG_LA_LD_FLAGS) \
- $(audio_swig_la_swig_ldflags)
-
-_audio_swig_la_CXXFLAGS = \
- $(STD_SWIG_CXX_FLAGS) \
- -I$(top_builddir) \
- $(audio_swig_la_swig_cxxflags)
-
-python/audio_swig.cc: audio_swig.py
-audio_swig.py: audio_swig.i
-
-# Include the python dependencies for this file
--include python/audio_swig.d
-
-endif # end of if python
-
-if GUILE
-
-audio_swig_scmlib_LTLIBRARIES = \
- libguile-gnuradio-audio_swig.la
-libguile_gnuradio_audio_swig_la_SOURCES = \
- guile/audio_swig.cc \
- $(audio_swig_la_swig_sources)
-nobase_audio_swig_scm_DATA = \
- gnuradio/audio_swig.scm \
- gnuradio/audio_swig-primitive.scm
-libguile_gnuradio_audio_swig_la_LIBADD = \
- $(STD_SWIG_LA_LIB_ADD) \
- $(audio_swig_la_swig_libadd)
-libguile_gnuradio_audio_swig_la_LDFLAGS = \
- $(STD_SWIG_LA_LD_FLAGS) \
- $(audio_swig_la_swig_ldflags)
-libguile_gnuradio_audio_swig_la_CXXFLAGS = \
- $(STD_SWIG_CXX_FLAGS) \
- -I$(top_builddir) \
- $(audio_swig_la_swig_cxxflags)
-
-guile/audio_swig.cc: gnuradio/audio_swig.scm
-gnuradio/audio_swig.scm: audio_swig.i
-gnuradio/audio_swig-primitive.scm: gnuradio/audio_swig.scm
-
-# Include the guile dependencies for this file
--include guile/audio_swig.d
-
-endif # end of GUILE
-
-
diff --git a/gr-audio/swig/__init__.py b/gr-audio/swig/__init__.py
index c1b9a0493..ff10a8976 100644
--- a/gr-audio/swig/__init__.py
+++ b/gr-audio/swig/__init__.py
@@ -1,18 +1,18 @@
#
# Copyright 2011 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gr-audio/swig/audio_swig.i b/gr-audio/swig/audio_swig.i
index 71db0ae09..089055dac 100644
--- a/gr-audio/swig/audio_swig.i
+++ b/gr-audio/swig/audio_swig.i
@@ -1,18 +1,18 @@
/*
* Copyright 2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,