/*
A program to generate c header files containing pre-calculated wavedata.
Copyright 2011 David Robillard
Copyright 2002 Mike Rawes
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 of the License, 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. If not, see .
*/
#define _POSIX_C_SOURCE 200809L // strdup
#include
#include
#include
#include
#include "lv2/lv2plug.in/ns/lv2core/lv2.h"
#include "wdatutil.h"
#include "wavedata.h"
#include "common.h"
static void
usage(void)
{
int i;
fprintf(stderr, "\n");
fprintf(stderr, "Generate bandlimited wavedata and write as c header file\n");
fprintf(stderr, "\n");
fprintf(stderr, "Usage: wavegen -w -r -f -s \n");
fprintf(stderr, " -m [-o