67 |
cout << endl; |
cout << endl; |
68 |
cout << " -v Print version and exit." << endl; |
cout << " -v Print version and exit." << endl; |
69 |
cout << endl; |
cout << endl; |
70 |
cout << " --verbose Print additional informations while converting." << endl; |
cout << " --verbose Print additional information while converting." << endl; |
71 |
cout << endl; |
cout << endl; |
72 |
cout << "Read `man gig2stereo' for details." << endl; |
cout << "Read `man gig2stereo' for details." << endl; |
73 |
cout << endl; |
cout << endl; |
74 |
} |
} |
75 |
|
|
76 |
static string programRevision() { |
static string programRevision() { |
77 |
string s = "$Revision:$"; |
string s = "$Revision$"; |
78 |
return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword |
return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword |
79 |
} |
} |
80 |
|
|
203 |
* their main sample characteristics match, if set |
* their main sample characteristics match, if set |
204 |
* to true this sanity check will be skipped |
* to true this sanity check will be skipped |
205 |
* @param verbosity - verbosity level, defines whether and how much additional |
* @param verbosity - verbosity level, defines whether and how much additional |
206 |
* informations to be printed to the console while doing the |
* information to be printed to the console while doing the |
207 |
* conversion (0 .. 2) |
* conversion (0 .. 2) |
208 |
*/ |
*/ |
209 |
static bool convertFileToStereo(const string path, bool keep, bool forceReplace, bool skipIncompatible, int verbose) { |
static bool convertFileToStereo(const string path, bool keep, bool forceReplace, bool skipIncompatible, int verbose) { |
321 |
OPTIONAL_SKIP_CHECK(); |
OPTIONAL_SKIP_CHECK(); |
322 |
} |
} |
323 |
if (pSampleL->LoopStart != pSampleR->LoopStart) { |
if (pSampleL->LoopStart != pSampleR->LoopStart) { |
324 |
cerr << "WARNING: Sample pair ['" << pSampleL->pInfo->Name << "', '" << pSampleR->pInfo->Name << "'] with different loop start! Skipping!\n"; |
cerr << "WARNING: Sample pair ['" << pSampleL->pInfo->Name << "', '" << pSampleR->pInfo->Name << "'] with different loop start!"; |
325 |
continue; // skip to convert this sample pair |
OPTIONAL_SKIP_CHECK(); |
326 |
} |
} |
327 |
if (pSampleL->LoopEnd != pSampleR->LoopEnd) { |
if (pSampleL->LoopEnd != pSampleR->LoopEnd) { |
328 |
cerr << "WARNING: Sample pair ['" << pSampleL->pInfo->Name << "', '" << pSampleR->pInfo->Name << "'] with different loop end! Skipping!\n"; |
cerr << "WARNING: Sample pair ['" << pSampleL->pInfo->Name << "', '" << pSampleR->pInfo->Name << "'] with different loop end!"; |
329 |
continue; // skip to convert this sample pair |
OPTIONAL_SKIP_CHECK(); |
330 |
} |
} |
331 |
if (pSampleL->LoopSize != pSampleR->LoopSize) { |
if (pSampleL->LoopSize != pSampleR->LoopSize) { |
332 |
cerr << "WARNING: Sample pair ['" << pSampleL->pInfo->Name << "', '" << pSampleR->pInfo->Name << "'] with different loop size! Skipping!\n"; |
cerr << "WARNING: Sample pair ['" << pSampleL->pInfo->Name << "', '" << pSampleR->pInfo->Name << "'] with different loop size!"; |
333 |
continue; // skip to convert this sample pair |
OPTIONAL_SKIP_CHECK(); |
334 |
} |
} |
335 |
if (pSampleL->LoopPlayCount != pSampleR->LoopPlayCount) { |
if (pSampleL->LoopPlayCount != pSampleR->LoopPlayCount) { |
336 |
cerr << "WARNING: Sample pair ['" << pSampleL->pInfo->Name << "', '" << pSampleR->pInfo->Name << "'] with different loop play count!"; |
cerr << "WARNING: Sample pair ['" << pSampleL->pInfo->Name << "', '" << pSampleR->pInfo->Name << "'] with different loop play count!"; |
567 |
e.PrintMessage(); |
e.PrintMessage(); |
568 |
return false; // error |
return false; // error |
569 |
} catch (...) { |
} catch (...) { |
570 |
cerr << "Unknown exception occured while trying to convert file." << endl; |
cerr << "Unknown exception occurred while trying to convert file." << endl; |
571 |
return false; // error |
return false; // error |
572 |
} |
} |
573 |
return true; // success |
return true; // success |