From 670aeec59aec9d0bd11c206c049448233fcd0279 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 18 Feb 2016 06:11:54 -0800 Subject: Fix default makehrtf output name And clean up the parameter processing. --- utils/makehrtf.c | 308 ++++++++++++++++++++++++++++++------------------------- 1 file changed, 169 insertions(+), 139 deletions(-) (limited to 'utils/makehrtf.c') diff --git a/utils/makehrtf.c b/utils/makehrtf.c index 57d8a91a..fef1533a 100644 --- a/utils/makehrtf.c +++ b/utils/makehrtf.c @@ -2512,146 +2512,176 @@ static int ProcessDefinition (const char * inName, const uint outRate, const uin return (1); } -// Standard command line dispatch. -int main (const int argc, const char * argv []) { - const char * inName = NULL, * outName = NULL; - OutputFormatT outFormat; - int argi; - uint outRate, fftSize; - int equalize, surface; - double limit; - uint truncSize; - HeadModelT model; - double radius; - char * end = NULL; - - if (argc < 2) { - fprintf (stderr, "Error: No command specified. See '%s -h' for help.\n", argv [0]); - return (-1); - } - if ((strcmp (argv [1], "--help") == 0) || (strcmp (argv [1], "-h") == 0)) { - fprintf (stdout, "HRTF Processing and Composition Utility\n\n"); - fprintf (stdout, "Usage: %s [