]> Nishi Git Mirror - gwion.git/commitdiff
:art: Windows fix
authorJérémie Astor <fennecdjay@gmail.com>
Thu, 25 Feb 2021 19:54:45 +0000 (20:54 +0100)
committerJérémie Astor <fennecdjay@gmail.com>
Thu, 25 Feb 2021 19:54:45 +0000 (20:54 +0100)
src/arg.c

index 0dba4872eb8b3672bd59febda60b5bd34de23562..bcae9ed7e236f9a1d4376d6c1d1af5baeff9b9f4 100644 (file)
--- a/src/arg.c
+++ b/src/arg.c
@@ -15,7 +15,7 @@ enum {
   CONFIG, PLUGIN, MODULE,
   LOOP, PASS, STDIN,
 // sound options
-  DRIVER, SRATE, INPUT, OUTPUT,
+  DRIVER, SRATE, NINPUT, NOUTPUT,
 // pp options
   DEFINE, UNDEF, INCLUDE,
   NOPTIONS
@@ -152,12 +152,12 @@ static void setup_options(cmdapp_t* app, cmdopt_t* opt) {
     cmdapp_set(app,
         'i', "input",
         CMDOPT_TAKESARG, NULL,
-        "number of input channel", &opt[INPUT]
+        "number of input channel", &opt[NINPUT]
     );
     cmdapp_set(app,
         'o', "output",
         CMDOPT_TAKESARG, NULL,
-        "number of output channel", &opt[OUTPUT]
+        "number of output channel", &opt[NOUTPUT]
     );
     cmdapp_set(app,
         'D', "define",