From 409f3a4ff1a4661a296a5bada5e9e2ea5e4ba142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Goran=20Meki=C4=87?= Date: Mon, 8 May 2017 13:19:25 +0200 Subject: Add --no-resampling CLI option --- drumgizmo/drumgizmoc.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'drumgizmo') diff --git a/drumgizmo/drumgizmoc.cc b/drumgizmo/drumgizmoc.cc index feae0ae..6244125 100644 --- a/drumgizmo/drumgizmoc.cc +++ b/drumgizmo/drumgizmoc.cc @@ -73,6 +73,7 @@ static const char usage_str[] = " -D, --debug ddd Enable debug messages on 'ddd'; see hugin " "documentation for details\n" #endif /*DISABLE_HUGIN*/ + " -r, --no-resampling Disable resampling.\n" " -s, --streaming Enable streaming.\n" " -S, --streamingparms Streaming options.\n" " -v, --version Print version information and exit.\n" @@ -142,11 +143,12 @@ int main(int argc, char* argv[]) {"streamingparams", required_argument, 0, 'S'}, {"version", no_argument, 0, 'v'}, {"help", no_argument, 0, 'h'}, + {"no-resample", no_argument, 0, 'r'}, {0, 0, 0, 0} }; while(1) { - c = getopt_long(argc, argv, "hvpo:O:i:I:e:asS:" + c = getopt_long(argc, argv, "hvpo:O:i:I:e:arsS:" #ifndef DISABLE_HUGIN "D:" #endif /*DISABLE_HUGIN*/ @@ -221,6 +223,10 @@ int main(int argc, char* argv[]) printf("%s", copyright_str); return 0; + case 'r': + settings.enable_resampling = false; + break; + case 's': settings.disk_cache_enable = true; break; -- cgit v1.2.3