Changeset e8fcc9a


Ignore:
Timestamp:
Jun 26, 2018, 1:16:40 PM (2 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
25f280f, a81b12a, ac26526, af4f9e6
Parents:
5b1cbbc
Message:

examples/parse_args.h: hide jack options if not available, improve error message (closes: #182)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/parse_args.h

    r5b1cbbc re8fcc9a  
    116116      "                 do not fail if output file already exists\n"
    117117#endif /* PROG_HAS_OUTPUT */
    118 #ifdef PROG_HAS_JACK
     118#if defined(PROG_HAS_JACK) && defined(HAVE_JACK)
    119119      "       -j      --jack             use Jack\n"
    120120#if defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH)
     
    122122      "       -V      --miditap-velo     MIDI velocity; default=65.\n"
    123123#endif /* defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH) */
    124 #endif /* PROG_HAS_JACK */
     124#endif /* defined(PROG_HAS_JACK) && defined(HAVE_JACK) */
    125125      "       -v      --verbose          be verbose\n"
    126126      "       -h      --help             display this message\n"
     
    314314#else
    315315    errmsg("Error: no arguments given (and no available audio input)\n");
    316     usage ( stderr, 1 );
     316    errmsg("       consider recompiling with jack support (--enable-jack)\n");
     317    exit ( 1 );
    317318#endif /* HAVE_JACK */
    318319#else
Note: See TracChangeset for help on using the changeset viewer.