summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.clang_complete9
-rw-r--r--drumgizmo/drumgizmoc.cc8
2 files changed, 16 insertions, 1 deletions
diff --git a/.clang_complete b/.clang_complete
new file mode 100644
index 0000000..4eec912
--- /dev/null
+++ b/.clang_complete
@@ -0,0 +1,9 @@
+-std=c++11
+-I.
+-I..
+-I../include
+-I../drumgizmo
+-I../hugin
+-I../../include
+-I../../drumgizmo
+-I../../hugin
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;