341 |
#endif // !HAVE_SNDFILE |
#endif // !HAVE_SNDFILE |
342 |
|
|
343 |
string Revision() { |
string Revision() { |
344 |
string s = "$Revision: 1.5 $"; |
string s = "$Revision: 1.6 $"; |
345 |
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 |
346 |
} |
} |
347 |
|
|
348 |
void PrintVersion() { |
void PrintVersion() { |
349 |
cout << "gigextract revision " << Revision() << endl; |
cout << "gigextract revision " << Revision() << endl; |
350 |
cout << "using " << gig::libraryName() << " " << gig::libraryVersion() << endl; |
cout << "using " << gig::libraryName() << " " << gig::libraryVersion(); |
351 |
|
#if HAVE_SNDFILE |
352 |
|
char versionBuffer[128]; |
353 |
|
sf_command(NULL, SFC_GET_LIB_VERSION, versionBuffer, 128); |
354 |
|
cout << ", " << versionBuffer; |
355 |
|
#endif // HAVE_SNDFILE |
356 |
|
cout << endl; |
357 |
|
#if !HAVE_SNDFILE |
358 |
|
cout << "built against libaudiofile " |
359 |
|
<< LIBAUDIOFILE_MAJOR_VERSION << "." << LIBAUDIOFILE_MINOR_VERSION |
360 |
|
# ifdef LIBAUDIOFILE_MICRO_VERSION |
361 |
|
<< "." << LIBAUDIOFILE_MICRO_VERSION |
362 |
|
# endif // LIBAUDIOFILE_MICRO_VERSION |
363 |
|
<< endl; |
364 |
|
#endif // !HAVE_SNDFILE |
365 |
} |
} |
366 |
|
|
367 |
void PrintUsage() { |
void PrintUsage() { |