# include // getopt # include "qwav.hh" # include "qexception.hh" #include #ifdef NLS # include # include # define _(s) gettext (s) #else # define _(s) (s) #endif void usage () { cerr << ' ' << APPNAME << _(": extract and/or delete parts of a wav file\n"); cerr << _(" syntax: ") << APPNAME << _(" [option]... file\n"); cerr << _(" options:\n"); cerr << _(" -B, --set-begin : set the first sample from the beginning of the file\n"); cerr << _(" -b, --set-begin-from-eof : set the first sample from the end of the file\n"); cerr << _(" -d, --delete: deletes the fragment\n"); cerr << _(" -E, --set-end : set the last sample from the beginning of the file\n"); cerr << _(" -e, --set-end-from-eof : set the last sample from the end of the file\n"); cerr << _(" -h, --help: show this help and exit\n"); cerr << _(" -o, --output : output file where the fragment is stored\n"); cerr << _(" -s, --size : specifies the size of the cut\n"); cerr << _(" -S, --slice