From b409a4b0c6131e01fc5a03c0fc31caa4829b0dec Mon Sep 17 00:00:00 2001 From: Johnathan Corgan Date: Mon, 18 Jul 2011 15:54:43 -0700 Subject: gr-vocoder: re-implemented gr-codec2-vocoder inside gr-vocoder --- gr-vocoder/python/Makefile.am | 5 +++-- gr-vocoder/python/qa_codec2_vocoder.py | 39 ++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 2 deletions(-) create mode 100755 gr-vocoder/python/qa_codec2_vocoder.py (limited to 'gr-vocoder/python') 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") -- cgit