mirror of
https://github.com/azahar-emu/soundtouch
synced 2025-11-06 23:20:03 +01:00
soundstretch: Print hello text even if no switches were given
This commit is contained in:
parent
077e73422f
commit
0095a3d933
@ -256,14 +256,18 @@ static void detectBPM(WavInFile& inFile, RunParameters& params)
|
||||
}
|
||||
}
|
||||
|
||||
void printHelloText()
|
||||
{
|
||||
SoundTouch soundTouch;
|
||||
fprintf(stderr, _helloText, soundTouch.getVersionString());
|
||||
}
|
||||
|
||||
void ss_main(RunParameters& params)
|
||||
{
|
||||
unique_ptr<WavInFile> inFile;
|
||||
unique_ptr<WavOutFile> outFile;
|
||||
SoundTouch soundTouch;
|
||||
|
||||
fprintf(stderr, _helloText, soundTouch.getVersionString());
|
||||
|
||||
// Open input & output files
|
||||
openFiles(inFile, outFile, params);
|
||||
|
||||
@ -299,6 +303,7 @@ int main(int argc, const char* args[])
|
||||
{
|
||||
try
|
||||
{
|
||||
soundstretch::printHelloText();
|
||||
soundstretch::RunParameters params(argc, args);
|
||||
soundstretch::ss_main(params);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user