00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 static const char help_msg[]=
00020 " \n"
00021 " NAME: \n"
00022 " \n"
00023 " WavJoin joins WAV files \n"
00024 " \n"
00025 " DESCRIPTION: \n"
00026 " \n"
00027 " WavJoin merges a list of WAV files. If output option {-o, --output FNAME} \n"
00028 " is omitted, the rest of the files will be added to the very first file \n"
00029 " on the list. \n"
00030 " \n"
00031 " USAGE: \n"
00032 " \n"
00033 " shell> WavJoin [OPTIONS] --output=<result.wav> file1, file2, ... \n"
00034 " \n"
00035 " OPTIONS: \n"
00036 " \n"
00037 " -o, --output NAME - Output file name \n"
00038 " --percent - Report the name of the file being processed and \n"
00039 " its completion percentage. \n"
00040 " -D, --log-file NAME - Write debug to NAME file (dflt: /dev/null) \n"
00041 " -d, --log-stdout - Write debug to standard output \n"
00042 " -z, --log-size NUM - Maximum size debug file can reach (dfl: is 10Mb) \n"
00043 " -m, --mask MASK - Mask (default: NONE=0x0) \n"
00044 " -h, --help - Print this messag \n"
00045 " -v, --version - Print version number \n";
00046
00047
00048 #include "WavJoin-main.h"
00049 #include "WavJoin.h"
00050
00051 #ifdef HAVE_CONFIG_H
00052 #include "config.h"
00053 #endif
00054
00055 int
00056 main (int argc, char* argv[])
00057 {
00058 static const char release[] = VERSION;
00059 int patch_level = 0;
00060
00061 WavJoin& server = *WavJoin::getInstance ();
00062
00063 server.set_version (release, patch_level);
00064 server.set_author ("Vladislav Grinchenko");
00065
00066 server.init (&argc, argv, help_msg);
00067
00068 server.initServer ();
00069 server.processServer ();
00070
00071 return server.get_exit_value ();
00072 }