summaryrefslogtreecommitdiff
path: root/gr-vocoder/python
diff options
context:
space:
mode:
authorJohnathan Corgan2011-07-18 15:54:43 -0700
committerJohnathan Corgan2011-07-18 16:36:15 -0700
commitb409a4b0c6131e01fc5a03c0fc31caa4829b0dec (patch)
tree51ec0115bd114716672f0659800cda933cfc77dd /gr-vocoder/python
parentc067ea65d7433d4111b344ded6dfbf089062cf33 (diff)
downloadgnuradio-b409a4b0c6131e01fc5a03c0fc31caa4829b0dec.tar.gz
gnuradio-b409a4b0c6131e01fc5a03c0fc31caa4829b0dec.tar.bz2
gnuradio-b409a4b0c6131e01fc5a03c0fc31caa4829b0dec.zip
gr-vocoder: re-implemented gr-codec2-vocoder inside gr-vocoder
Diffstat (limited to 'gr-vocoder/python')
-rw-r--r--gr-vocoder/python/Makefile.am5
-rwxr-xr-xgr-vocoder/python/qa_codec2_vocoder.py39
2 files changed, 42 insertions, 2 deletions
diff --git a/gr-vocoder/python/Makefile.am b/gr-vocoder/python/Makefile.am
index e4dc1ac61..1afbc9232 100644
--- a/gr-vocoder/python/Makefile.am
+++ b/gr-vocoder/python/Makefile.am
@@ -26,8 +26,9 @@ vocoderdir = $(grpythondir)/vocoder
TESTS = run_tests
noinst_PYTHON = \
- qa_gsm_full_rate.py \
- qa_cvsd_vocoder.py
+ qa_codec2_vocoder.py \
+ qa_cvsd_vocoder.py \
+ qa_gsm_full_rate.py
vocoder_PYTHON = \
__init__.py \
diff --git a/gr-vocoder/python/qa_codec2_vocoder.py b/gr-vocoder/python/qa_codec2_vocoder.py
new file mode 100755
index 000000000..699bb7dda
--- /dev/null
+++ b/gr-vocoder/python/qa_codec2_vocoder.py
@@ -0,0 +1,39 @@
+#!/usr/bin/env python
+#
+# 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.
+#
+
+from gnuradio import gr, gr_unittest
+from vocoder_swig import *
+
+class test_codec2_vocoder (gr_unittest.TestCase):
+
+ def setUp (self):
+ self.tb = gr.top_block()
+
+ def tearDown (self):
+ self.tb = None
+
+ def test001_module_load (self):
+ raw_enc = codec2_encode_sp();
+ raw_dec = codec2_decode_ps();
+
+if __name__ == '__main__':
+ gr_unittest.run(test_codec2_vocoder, "test_codec2_vocoder.xml")