From 2a5cb62885ab46ae0d8594bee26e256baed9813b Mon Sep 17 00:00:00 2001 From: Josh Morman <mormjb@gmail.com> Date: Thu, 23 Apr 2020 11:01:05 -0400 Subject: vocoder: add pybind11 bindings --- .../vocoder/bindings/g723_24_decode_bs_python.cc | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 gr-vocoder/python/vocoder/bindings/g723_24_decode_bs_python.cc (limited to 'gr-vocoder/python/vocoder/bindings/g723_24_decode_bs_python.cc') diff --git a/gr-vocoder/python/vocoder/bindings/g723_24_decode_bs_python.cc b/gr-vocoder/python/vocoder/bindings/g723_24_decode_bs_python.cc new file mode 100644 index 0000000000..9d35b65229 --- /dev/null +++ b/gr-vocoder/python/vocoder/bindings/g723_24_decode_bs_python.cc @@ -0,0 +1,39 @@ +/* + * Copyright 2020 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * SPDX-License-Identifier: GPL-3.0-or-later + * + */ + +/* This file is automatically generated using bindtool */ + +#include <pybind11/complex.h> +#include <pybind11/pybind11.h> +#include <pybind11/stl.h> + +namespace py = pybind11; + +#include <gnuradio/vocoder/g723_24_decode_bs.h> +// pydoc.h is automatically generated in the build directory +#include <g723_24_decode_bs_pydoc.h> + +void bind_g723_24_decode_bs(py::module& m) +{ + + using g723_24_decode_bs = ::gr::vocoder::g723_24_decode_bs; + + + py::class_<g723_24_decode_bs, + gr::sync_block, + gr::block, + gr::basic_block, + std::shared_ptr<g723_24_decode_bs>>( + m, "g723_24_decode_bs", D(g723_24_decode_bs)) + + .def(py::init(&g723_24_decode_bs::make), D(g723_24_decode_bs, make)) + + + ; +} -- cgit v1.2.3