summaryrefslogtreecommitdiff
path: root/drumgizmo/drumgizmoc.cc
diff options
context:
space:
mode:
authorGoran Mekić <meka@tilda.center>2017-05-08 13:19:25 +0200
committerGoran Mekić <meka@tilda.center>2017-05-11 13:07:54 +0200
commit409f3a4ff1a4661a296a5bada5e9e2ea5e4ba142 (patch)
treec2ada5192e74d936f9620456710e661843d751c8 /drumgizmo/drumgizmoc.cc
parentb4a3767a189145d62177182fdd418bb3ba5dd455 (diff)
Add --no-resampling CLI option
Diffstat (limited to 'drumgizmo/drumgizmoc.cc')
-rw-r--r--drumgizmo/drumgizmoc.cc8
1 files changed, 7 insertions, 1 deletions
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;