/*---------------------------------------------------------------------------*\
FILE........: cohpsk_mod.c
AUTHOR......: David Rowe
DATE CREATED: April 5 2015
Given an input file of bits (note one bit per float, soft decision format),
outputs a raw file (8kHz, 16 bit shorts) of COHPSK modem samples
ready to send over a HF radio channel.
\*---------------------------------------------------------------------------*/
/*
Copyright (C) 2015 David Rowe
All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 2.1, as
published by the Free Software Foundation. This program 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 Lesser General Public License
along with this program; if not, see .
*/
#include
#include
#include
#include
#include
#include
#include "codec2_cohpsk.h"
#include "codec2_fdmdv.h"
int opt_exists(char *argv[], int argc, char opt[]) {
int i;
for (i=0; i