/* -*- c++ -*- */ /* * DSTAR Encoder (C) Copyright 2017 Max H. Parke KA1RBI * * This file is part of OP25 * * This 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. * * This software 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 this software; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, * Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include "mbelib.h" #include "p25p2_vf.h" #include "dstar_tx_sb_impl.h" // #include "dstar_const.h" #include #include #include #include #include #include #include #include #include #include #if 0 static inline void print_result(char title[], const uint8_t r[], int len) { uint8_t buf[256]; for (int i=0; i(output_items[0]); int nframes=0; for (int n=0;n < (noutput_items/96);n++) { // need (at least) one voice codeword worth of samples if (ninput_items[0] - nconsumed < 160) break; d_encoder.encode(in, out); in += 160; nconsumed += 160; nframes += 1; out += 96; } // Tell runtime system how many input items we consumed on // each input stream. if (nconsumed) consume_each(nconsumed); // Tell runtime system how many output items we produced. return (nframes * 96); } } /* namespace op25_repeater */ } /* namespace gr */