Mercurial > hg > sonic-visualiser
comparison main/main.cpp @ 2053:9ae7725215e3
Add --version option
author | Chris Cannam |
---|---|
date | Thu, 01 Nov 2018 10:18:07 +0000 |
parents | 55d9bbf1fe45 |
children | 943e52e03cde |
comparison
equal
deleted
inserted
replaced
2052:1e43d01f4172 | 2053:9ae7725215e3 |
---|---|
44 #include <QFileOpenEvent> | 44 #include <QFileOpenEvent> |
45 | 45 |
46 #include <iostream> | 46 #include <iostream> |
47 #include <signal.h> | 47 #include <signal.h> |
48 | 48 |
49 #include "../version.h" | |
50 | |
49 #ifdef HAVE_FFTW3F | 51 #ifdef HAVE_FFTW3F |
50 #include <fftw3.h> | 52 #include <fftw3.h> |
51 #endif | 53 #endif |
52 | 54 |
53 /*! \mainpage Sonic Visualiser | 55 /*! \mainpage Sonic Visualiser |
262 cerr << QApplication::tr( | 264 cerr << QApplication::tr( |
263 "\nSonic Visualiser is a program for viewing and exploring audio data\nfor semantic music analysis and annotation.\n\nUsage:\n\n %1 [--no-audio] [--no-osc] [<file> ...]\n\n --no-audio: Do not attempt to open an audio output device\n --no-osc: Do not provide an Open Sound Control port for remote control\n <file>: One or more Sonic Visualiser (.sv) and audio files may be provided.\n").arg(argv[0]) << endl; | 265 "\nSonic Visualiser is a program for viewing and exploring audio data\nfor semantic music analysis and annotation.\n\nUsage:\n\n %1 [--no-audio] [--no-osc] [<file> ...]\n\n --no-audio: Do not attempt to open an audio output device\n --no-osc: Do not provide an Open Sound Control port for remote control\n <file>: One or more Sonic Visualiser (.sv) and audio files may be provided.\n").arg(argv[0]) << endl; |
264 exit(2); | 266 exit(2); |
265 } | 267 } |
266 | 268 |
269 if (args.contains("--version")) { | |
270 cerr << SV_VERSION << endl; | |
271 exit(0); | |
272 } | |
273 | |
267 if (args.contains("--no-audio")) audioOutput = false; | 274 if (args.contains("--no-audio")) audioOutput = false; |
268 if (args.contains("--no-osc")) oscSupport = false; | 275 if (args.contains("--no-osc")) oscSupport = false; |
269 | 276 |
270 QApplication::setOrganizationName("sonic-visualiser"); | 277 QApplication::setOrganizationName("sonic-visualiser"); |
271 QApplication::setOrganizationDomain("sonicvisualiser.org"); | 278 QApplication::setOrganizationDomain("sonicvisualiser.org"); |